equal
deleted
inserted
replaced
19 #ifndef VIDEOOPERATORSERVICE_H |
19 #ifndef VIDEOOPERATORSERVICE_H |
20 #define VIDEOOPERATORSERVICE_H |
20 #define VIDEOOPERATORSERVICE_H |
21 |
21 |
22 #include <qobject.h> |
22 #include <qobject.h> |
23 |
23 |
24 class HbPushButton; |
24 class VideoOperatorServicePrivate; |
25 |
25 |
26 /** |
26 /** |
27 * Loading and launching functionality for operator customisable services. |
27 * Public functionality for loading and launching operator customisable services. |
28 */ |
28 */ |
29 class VideoOperatorService : public QObject |
29 class VideoOperatorService : public QObject |
30 { |
30 { |
31 Q_OBJECT |
31 Q_OBJECT |
|
32 |
|
33 Q_DISABLE_COPY(VideoOperatorService) |
32 |
34 |
33 public: |
35 public: |
34 |
36 |
35 /** |
37 /** |
36 * Contructor. |
38 * Contructor. |
37 * |
39 * |
38 * @param parent parent of this widget |
40 * @param parent parent of this widget |
39 */ |
41 */ |
40 VideoOperatorService(QObject *parent = 0); |
42 VideoOperatorService(QObject *parent = 0); |
41 |
43 |
|
44 /** |
|
45 * Destructor. |
|
46 * |
|
47 */ |
|
48 ~VideoOperatorService(); |
|
49 |
42 /** |
50 /** |
43 * Loads the service. |
51 * Loads the service. |
44 * |
52 * |
45 * @titleKey Central Repository key id for the service's title. |
53 * @titleKey Central Repository key id for the service's title. |
46 * @iconKey Central Repository key id for the service's icon resource. |
54 * @iconKey Central Repository key id for the service's icon resource. |
63 * |
71 * |
64 * @return path or resource id to the icon. |
72 * @return path or resource id to the icon. |
65 */ |
73 */ |
66 const QString iconResource() const; |
74 const QString iconResource() const; |
67 |
75 |
68 private: |
|
69 |
|
70 void launchApplicationL(const TUid uid, TInt viewId); |
|
71 |
|
72 public slots: |
76 public slots: |
73 |
77 |
74 /** |
78 /** |
75 * Launches the service. |
79 * Launches the service. |
76 */ |
80 */ |
77 void launchService(); |
81 void launchService(); |
78 |
82 |
79 private: |
83 private: |
80 |
84 |
81 Q_DISABLE_COPY(VideoOperatorService) |
|
82 |
|
83 /** |
85 /** |
84 * Title for the service. |
86 * Pointer to private implementation. |
85 */ |
87 */ |
86 QString mTitle; |
88 VideoOperatorServicePrivate *d_ptr; |
87 |
89 |
88 /** |
|
89 * Icon for the service. |
|
90 */ |
|
91 QString mIconResource; |
|
92 |
|
93 /** |
|
94 * Service URL if service should launch an URL. |
|
95 */ |
|
96 QString mServiceUri; |
|
97 |
|
98 /** |
|
99 * Application UID if service should launch an external application. |
|
100 */ |
|
101 int mApplicationUid; |
|
102 }; |
90 }; |
103 |
91 |
104 #endif // VIDEOOPERATORSERVICE_H |
92 #endif // VIDEOOPERATORSERVICE_H |
105 |
93 |
106 // End of file. |
94 // End of file. |