accounts-qt
1.15
|
00001 /* vi: set et sw=4 ts=4 cino=t0,(0: */ 00002 /* 00003 * This file is part of libaccounts-qt 00004 * 00005 * Copyright (C) 2009-2011 Nokia Corporation. 00006 * Copyright (C) 2012-2016 Canonical Ltd. 00007 * 00008 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public License 00012 * version 2.1 as published by the Free Software Foundation. 00013 * 00014 * This library is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this library; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00022 * 02110-1301 USA 00023 */ 00028 #ifndef ACCOUNTSCOMMON_H_ 00029 #define ACCOUNTSCOMMON_H_ 00030 00031 #ifdef BUILDING_ACCOUNTS_QT 00032 00033 #include <QDebug> 00034 00035 // String conversion 00036 00037 #ifdef ASCII 00038 #undef ASCII 00039 #endif 00040 #define ASCII(s) QLatin1String(s) 00041 00042 #ifdef UTF8 00043 #undef UTF8 00044 #endif 00045 #define UTF8(s) QString::fromUtf8(s) 00046 00047 // Symbol visibility 00048 #if __GNUC__ >= 4 00049 #define ACCOUNTS_EXPORT __attribute__ ((visibility("default"))) 00050 #endif 00051 00052 #endif // BUILDING_ACCOUNTS_QT 00053 00054 #ifndef ACCOUNTS_EXPORT 00055 #define ACCOUNTS_EXPORT 00056 #endif 00057 00058 namespace Accounts { 00059 00060 enum ReferenceMode { 00061 AddReference = 0, 00062 StealReference, 00063 }; 00064 00065 } // namespace 00066 00067 #endif /* ACCOUNTSCOMMON_H_ */