equal
deleted
inserted
replaced
25 #ifndef HBTHEMESERVERAPPLICATION_P_H |
25 #ifndef HBTHEMESERVERAPPLICATION_P_H |
26 #define HBTHEMESERVERAPPLICATION_P_H |
26 #define HBTHEMESERVERAPPLICATION_P_H |
27 |
27 |
28 #include <qtsingleapplication.h> |
28 #include <qtsingleapplication.h> |
29 |
29 |
|
30 #include <f32file.h> |
|
31 |
30 class HbThemeServer; |
32 class HbThemeServer; |
31 |
33 |
32 class HbThemeServerApplication : public QtSingleApplication |
34 class HbThemeServerApplication : public QtSingleApplication |
33 { |
35 { |
34 Q_OBJECT |
36 Q_OBJECT |
35 |
37 |
36 public: |
38 public: |
37 HbThemeServerApplication(int &argc, char *argv[]); |
39 HbThemeServerApplication(int &argc, char *argv[]); |
38 ~HbThemeServerApplication(); |
40 ~HbThemeServerApplication(); |
39 |
41 |
40 struct Options { |
|
41 static bool help; |
|
42 static bool start; |
|
43 static bool stop; |
|
44 static bool persistent; |
|
45 static QString error; |
|
46 }; |
|
47 |
|
48 bool initialize(); |
42 bool initialize(); |
49 int exec(); |
43 int exec(); |
50 static void setPriority(); |
44 static void setPriority(); |
51 |
|
52 public slots: |
|
53 void stop(); |
|
54 |
|
55 private slots: |
|
56 void receiveMessage(const QString &message); |
|
57 |
45 |
58 private: |
46 private: |
59 bool loadLibrary(const QString &name); |
47 bool loadLibrary(const QString &name); |
60 |
48 |
61 HbThemeServer *server; |
49 HbThemeServer *server; |
62 }; |
50 }; |
63 |
51 |
64 #ifdef Q_OS_SYMBIAN |
52 |
65 #include <f32file.h> |
|
66 class Lock |
53 class Lock |
67 { |
54 { |
68 public: |
55 public: |
69 enum State { |
56 enum State { |
70 Reserved, |
57 Reserved, |
84 |
71 |
85 private: |
72 private: |
86 RFs mFs; |
73 RFs mFs; |
87 RFile mFile; |
74 RFile mFile; |
88 }; |
75 }; |
89 #endif |
|
90 |
76 |
91 // Guard against starting multiple copies of the server |
77 // Guard against starting multiple copies of the server |
92 class HbThemeServerLocker |
78 class HbThemeServerLocker |
93 { |
79 { |
94 public: |
80 public: |
95 HbThemeServerLocker() {} |
81 HbThemeServerLocker() {} |
96 bool lock(); |
82 bool lock(); |
97 private: |
83 private: |
98 static bool serverExists(); |
84 static bool serverExists(); |
99 private: |
85 private: |
100 #ifdef Q_OS_SYMBIAN |
|
101 Lock mLock; |
86 Lock mLock; |
102 #endif |
|
103 }; |
87 }; |
104 |
88 |
105 #endif // HBTHEMESERVERAPPLICATION_P_H |
89 #endif // HBTHEMESERVERAPPLICATION_P_H |