Qt 4.8
Public Functions | Protected Functions | Properties | List of all members
IapMonitor Class Reference
Inheritance diagram for IapMonitor:
Maemo::IAPMonitor

Public Functions

void cleanup ()
 
 IapMonitor ()
 
void setup (QIcdEngine *d)
 
- Public Functions inherited from Maemo::IAPMonitor
 IAPMonitor ()
 
 ~IAPMonitor ()
 

Protected Functions

void iapAdded (const QString &iapId)
 
void iapRemoved (const QString &iapId)
 

Properties

QIcdEngined
 
bool first_call
 
IapAddTimer timers
 

Detailed Description

IAPMonitor specific

Definition at line 173 of file qicdengine.cpp.

Constructors and Destructors

◆ IapMonitor()

IapMonitor::IapMonitor ( )
inline

Definition at line 176 of file qicdengine.cpp.

176 : first_call(true) { }
bool first_call
Definition: qicdengine.cpp:186

Functions

◆ cleanup()

void IapMonitor::cleanup ( )

Definition at line 201 of file qicdengine.cpp.

Referenced by QIcdEngine::cleanup().

202 {
203  if (!first_call) {
204  timers.removeAll();
205  first_call = true;
206  }
207 }
bool first_call
Definition: qicdengine.cpp:186
void removeAll()
Definition: qicdengine.cpp:137
IapAddTimer timers
Definition: qicdengine.cpp:189

◆ iapAdded()

void IapMonitor::iapAdded ( const QString iapId)
protectedvirtual

Reimplemented from Maemo::IAPMonitor.

Definition at line 210 of file qicdengine.cpp.

211 {
212  /* We cannot know when the IAP is fully added to db, so a timer is
213  * installed instead. When the timer expires we hope that IAP is added ok.
214  */
215  QString id = iap_id;
216  timers.add(id, d);
217 }
The QString class provides a Unicode character string.
Definition: qstring.h:83
void add(QString &iap_id, QIcdEngine *d)
Definition: qicdengine.cpp:149
IapAddTimer timers
Definition: qicdengine.cpp:189
QIcdEngine * d
Definition: qicdengine.cpp:188

◆ iapRemoved()

void IapMonitor::iapRemoved ( const QString iapId)
protectedvirtual

Reimplemented from Maemo::IAPMonitor.

Definition at line 220 of file qicdengine.cpp.

221 {
222  QString id = iap_id;
223  d->deleteConfiguration(id);
224 }
void deleteConfiguration(const QString &iap_id)
Definition: qicdengine.cpp:343
The QString class provides a Unicode character string.
Definition: qstring.h:83
QIcdEngine * d
Definition: qicdengine.cpp:188

◆ setup()

void IapMonitor::setup ( QIcdEngine d)

Definition at line 192 of file qicdengine.cpp.

Referenced by QIcdEngine::ensureDBusConnection().

193 {
194  if (first_call) {
195  d = d_ptr;
196  first_call = false;
197  }
198 }
bool first_call
Definition: qicdengine.cpp:186
IAPMonitorPrivate * d_ptr
Definition: iapmonitor.h:61

Properties

◆ d

QIcdEngine* IapMonitor::d
private

Definition at line 188 of file qicdengine.cpp.

◆ first_call

bool IapMonitor::first_call
private

Definition at line 186 of file qicdengine.cpp.

◆ timers

IapAddTimer IapMonitor::timers
private

Definition at line 189 of file qicdengine.cpp.


The documentation for this class was generated from the following file: