-rw-r--r-- | library/qlibrary_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/qlibrary_p.h b/library/qlibrary_p.h index 4734228..33cab6f 100644 --- a/library/qlibrary_p.h +++ b/library/qlibrary_p.h | |||
@@ -1,100 +1,100 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #ifndef QLIBRARY_P_H | 21 | #ifndef QLIBRARY_P_H |
22 | #define QLIBRARY_P_H | 22 | #define QLIBRARY_P_H |
23 | 23 | ||
24 | // | 24 | // |
25 | // W A R N I N G | 25 | // W A R N I N G |
26 | // ------------- | 26 | // ------------- |
27 | // | 27 | // |
28 | // This file is not part of the Qt API. It exists for the convenience | 28 | // This file is not part of the Qt API. It exists for the convenience |
29 | // of the QLibrary class. This header file may change from | 29 | // of the QLibrary class. This header file may change from |
30 | // version to version without notice, or even be removed. | 30 | // version to version without notice, or even be removed. |
31 | // | 31 | // |
32 | // We mean it. | 32 | // We mean it. |
33 | // | 33 | // |
34 | // | 34 | // |
35 | 35 | ||
36 | #include "qlibrary.h" | 36 | #include "qlibrary.h" |
37 | 37 | ||
38 | //#ifndef QT_NO_COMPONENT | 38 | //#ifndef QT_NO_COMPONENT |
39 | 39 | ||
40 | //#ifndef QT_H | 40 | //#ifndef QT_H |
41 | #include "qwindowdefs.h" | 41 | #include "qwindowdefs.h" |
42 | //#ifndef QT_LITE_COMPONENT | 42 | //#ifndef QT_LITE_COMPONENT |
43 | #include "qobject.h" | 43 | #include "qobject.h" |
44 | //#endif | 44 | //#endif |
45 | //#endif // QT_H | 45 | //#endif // QT_H |
46 | 46 | ||
47 | class QTimer; | 47 | class QTimer; |
48 | class QLibrary; | 48 | class QLibrary; |
49 | class QLibraryInterface; | 49 | class QLibraryInterface; |
50 | 50 | ||
51 | /* | 51 | /* |
52 | Private helper class that saves the platform dependent handle | 52 | Private helper class that saves the platform dependent handle |
53 | and does the unload magic using a QTimer. | 53 | and does the unload magic using a QTimer. |
54 | */ | 54 | */ |
55 | //#ifndef QT_LITE_COMPONENT | 55 | //#ifndef QT_LITE_COMPONENT |
56 | class QLibraryPrivate : public QObject | 56 | class QLibraryPrivate : public QObject |
57 | { | 57 | { |
58 | Q_OBJECT | 58 | Q_OBJECT |
59 | public: | 59 | public: |
60 | QLibraryPrivate( QLibrary *lib ); | 60 | QLibraryPrivate( QLibrary *lib ); |
61 | ~QLibraryPrivate(); | 61 | ~QLibraryPrivate(); |
62 | 62 | ||
63 | void startTimer(); | 63 | void startTimer(); |
64 | void killTimer(); | 64 | void killTimer(); |
65 | 65 | ||
66 | #ifdef Q_WS_WIN | 66 | #ifdef Q_WS_WIN |
67 | HINSTANCE pHnd; | 67 | HINSTANCE pHnd; |
68 | #else | 68 | #else |
69 | void *pHnd; | 69 | void *pHnd; |
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | QLibraryInterface *libIface; | 72 | QLibraryInterface *libIface; |
73 | 73 | ||
74 | bool loadLibrary(); | 74 | bool loadLibrary(); |
75 | bool freeLibrary(); | 75 | bool freeLibrary(); |
76 | void *resolveSymbol( const char * ); | 76 | void *resolveSymbol( const char * ); |
77 | 77 | ||
78 | private slots: | 78 | private slots: |
79 | void tryUnload(); | 79 | void tryUnload(); |
80 | 80 | ||
81 | private: | 81 | private: |
82 | QTimer *unloadTimer; | 82 | QTimer *unloadTimer; |
83 | QLibrary *library; | 83 | QLibrary *library; |
84 | }; | 84 | }; |
85 | 85 | ||
86 | #else // QT_LITE_COMPONENT | 86 | #else // QT_LITE_COMPONENT |
87 | class QLibraryPrivate | 87 | class QLibraryPrivate |
88 | { | 88 | { |
89 | public: | 89 | public: |
90 | QLibraryPrivate( QLibrary *lib ); | 90 | QLibraryPrivate( QLibrary *lib ); |
91 | 91 | ||
92 | void startTimer(); | 92 | void startTimer(); |
93 | void killTimer(); | 93 | void killTimer(); |
94 | 94 | ||
95 | #ifdef Q_WS_WIN | 95 | #ifdef Q_WS_WIN |
96 | HINSTANCE pHnd; | 96 | HINSTANCE pHnd; |
97 | #else | 97 | #else |
98 | void *pHnd; | 98 | void *pHnd; |
99 | #endif | 99 | #endif |
100 | QLibraryInterface *libIface; | 100 | QLibraryInterface *libIface; |