summaryrefslogtreecommitdiff
path: root/library/qpeglobal.h
authorzecke <zecke>2004-12-24 23:05:54 (UTC)
committer zecke <zecke>2004-12-24 23:05:54 (UTC)
commiteb16a7b3d17b0659a7d83900843cef8efb510ceb (patch) (unidiff)
tree7e493f8b38e9e1a3553d4e87fb36a962acd82c5c /library/qpeglobal.h
parentd36845f5f7e7d6bd49529524cdc9f39ce1164491 (diff)
downloadopie-eb16a7b3d17b0659a7d83900843cef8efb510ceb.zip
opie-eb16a7b3d17b0659a7d83900843cef8efb510ceb.tar.gz
opie-eb16a7b3d17b0659a7d83900843cef8efb510ceb.tar.bz2
Config:
Merged: void writeEntry( const QString &key, const QStringList &lst) QStringList readListEntry( const QString &key ) const void removeGroup() void removeGroup(const QString&) QStringList allGroups() const Uninlined: const versions of read*Entry bool hasGroup ( const QString &gname )const QStringList groupList ( )const Marked these methods as NOT_IN_QPE, NOT_IN_SHARP, QTOPIA_MERGED_METHOD(version) to make them weak by default and to know which functions needs to be defined for possible SHARP.ROM versions
Diffstat (limited to 'library/qpeglobal.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeglobal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/qpeglobal.h b/library/qpeglobal.h
index a84e435..f64ccfd 100644
--- a/library/qpeglobal.h
+++ b/library/qpeglobal.h
@@ -1,88 +1,91 @@
1/* 1/*
2 This file is part of the OPIE Project 2 This file is part of the OPIE Project
3 Copyright (c) 2002,2003,2004 Holger Hans Peter Freyther <freyther@handhelds.org> 3 Copyright (c) 2002,2003,2004 Holger Hans Peter Freyther <freyther@handhelds.org>
4 Copyright (c) 2002,2003,2004 Stefan Eilers <eilers@handhelds.org> 4 Copyright (c) 2002,2003,2004 Stefan Eilers <eilers@handhelds.org>
5 5
6               =. 6               =.
7             .=l. 7             .=l.
8           .>+-= 8           .>+-=
9 _;:,     .>    :=|. This library is free software; you can 9 _;:,     .>    :=|. This library is free software; you can
10.> <`_,   >  .   <= redistribute it and/or modify it under 10.> <`_,   >  .   <= redistribute it and/or modify it under
11:`=1 )Y*s>-.--   : the terms of the GNU Library General Public 11:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
12.="- .-=="i,     .._ License as published by the Free Software 12.="- .-=="i,     .._ License as published by the Free Software
13 - .   .-<_>     .<> Foundation; either version 2 of the License, 13 - .   .-<_>     .<> Foundation; either version 2 of the License,
14     ._= =}       : or (at your option) any later version. 14     ._= =}       : or (at your option) any later version.
15    .%`+i>       _;_. 15    .%`+i>       _;_.
16    .i_,=:_.      -<s. This library is distributed in the hope that 16    .i_,=:_.      -<s. This library is distributed in the hope that
17     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 17     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
18    : ..    .:,     . . . without even the implied warranty of 18    : ..    .:,     . . . without even the implied warranty of
19    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 19    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
20  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 20  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
21..}^=.=       =       ; Library General Public License for more 21..}^=.=       =       ; Library General Public License for more
22++=   -.     .`     .: details. 22++=   -.     .`     .: details.
23 :     =  ...= . :.=- 23 :     =  ...= . :.=-
24 -.   .:....=;==+<; You should have received a copy of the GNU 24 -.   .:....=;==+<; You should have received a copy of the GNU
25  -_. . .   )=.  = Library General Public License along with 25  -_. . .   )=.  = Library General Public License along with
26    --        :-=` this library; see the file COPYING.LIB. 26    --        :-=` this library; see the file COPYING.LIB.
27 If not, write to the Free Software Foundation, 27 If not, write to the Free Software Foundation,
28 Inc., 59 Temple Place - Suite 330, 28 Inc., 59 Temple Place - Suite 330,
29 Boston, MA 02111-1307, USA. 29 Boston, MA 02111-1307, USA.
30 30
31*/ 31*/
32 32
33#ifndef QPE_GLOBAL_DEFINES_H 33#ifndef QPE_GLOBAL_DEFINES_H
34#define QPE_GLOBAL_DEFINES_H 34#define QPE_GLOBAL_DEFINES_H
35 35
36/** 36/**
37 * Defines for used compiler attributes 37 * Defines for used compiler attributes
38 * 38 *
39 */ 39 */
40 40
41/* 41/*
42 * commons 42 * commons
43 */ 43 */
44#define QPE_DEPRECATED 44#define QPE_DEPRECATED
45 45
46 46
47#if defined(Q_OS_MACX) 47#if defined(Q_OS_MACX)
48#define QPE_WEAK_SYMBOL __attribute__((weak_import)) 48#define QPE_WEAK_SYMBOL __attribute__((weak_import))
49#define QPE_SYMBOL_USED 49#define QPE_SYMBOL_USED
50#define QPE_SYMBOL_UNUSED 50#define QPE_SYMBOL_UNUSED
51#define QPE_EXPORT_SYMBOL 51#define QPE_EXPORT_SYMBOL
52 52
53#elif defined(_OS_UNIX_) 53#elif defined(_OS_UNIX_)
54#define QPE_WEAK_SYMBOL __attribute__((weak)) 54#define QPE_WEAK_SYMBOL __attribute__((weak))
55#define QPE_SYMBOL_USED __attribute__((used)) 55#define QPE_SYMBOL_USED __attribute__((used))
56#define QPE_SYMBOL_UNUSED __attribute__((unused)) 56#define QPE_SYMBOL_UNUSED __attribute__((unused))
57#define QPE_EXPORT_SYMBOL 57#define QPE_EXPORT_SYMBOL
58 58
59 59
60/* 60/*
61 * mark method as deprecated 61 * mark method as deprecated
62 */ 62 */
63#if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2) 63#if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2)
64 /* gcc >= 3.2 */ 64 /* gcc >= 3.2 */
65#undef QPE_DEPRECATED 65#undef QPE_DEPRECATED
66#define QPE_DEPRECATED __attribute__((deprecated)) 66#define QPE_DEPRECATED __attribute__((deprecated))
67#endif 67#endif
68 68
69/* 69/*
70 * Defined if Compiler supports attributes 70 * Defined if Compiler supports attributes
71 */ 71 */
72#ifdef GCC_SUPPORTS_VISIBILITY 72#ifdef GCC_SUPPORTS_VISIBILITY
73#undef QPE_EXPORT_SYMBOL 73#undef QPE_EXPORT_SYMBOL
74#define QPE_EXPORT_SYMBOL __attribute__((visibility("default"))) 74#define QPE_EXPORT_SYMBOL __attribute__((visibility("default")))
75#endif 75#endif
76 76
77 77
78 78
79#else // defined(Q_OS_WIN32) 79#else // defined(Q_OS_WIN32)
80#define QPE_WEAK_SYMBOL 80#define QPE_WEAK_SYMBOL
81#define QPE_SYMBOL_USED 81#define QPE_SYMBOL_USED
82#define QPE_SYMBOL_UNUSED 82#define QPE_SYMBOL_UNUSED
83#define QPE_EXPORT_SYMBOL 83#define QPE_EXPORT_SYMBOL
84#endif 84#endif
85 85
86 86
87#define QTOPIA_MERGED_METHOD(method, version) method QPE_WEAK_SYMBOL;
88#define NOT_IN_SHARP(method) method QPE_WEAK_SYMBOL;
89#define NOT_IN_QPE(method) method QPE_WEAK_SYMBOL;
87 90
88#endif 91#endif