accounts-qt  1.16
utils.h
1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /*
3  * This file is part of libaccounts-qt
4  *
5  * Copyright (C) 2012-2016 Canonical Ltd.
6  *
7  * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * version 2.1 as published by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  */
23 
24 #ifndef ACCOUNTS_UTILS_H
25 #define ACCOUNTS_UTILS_H
26 
27 #include <QVariant>
28 #undef signals
29 #include <glib-object.h>
30 
31 namespace Accounts {
32 
33 QVariant gVariantToQVariant(GVariant *value);
34 GVariant *qVariantToGVariant(const QVariant &variant);
35 
36 } // namespace
37 
38 #endif // ACCOUNTS_UTILS_H