43 #include <QStringList> 45 #include <conn_settings.h> 54 ConnSettingsValue *value,
67 settings = conn_settings_open(CONN_SETTINGS_CONNECTION, NULL);
68 conn_settings_add_notify(
76 conn_settings_del_notify(settings);
77 conn_settings_close(settings);
94 ConnSettingsValue *value,
99 if (type != CONN_SETTINGS_CONNECTION)
return;
103 iapId = iapId.
split(
"/")[0];
106 }
else if (iapId ==
QString(key)) {
virtual void iapRemoved(const QString &id)
void iapAdded(const QString &iap)
void iapRemoved(const QString &iap)
The QString class provides a Unicode character string.
virtual void iapAdded(const QString &id)
IAPMonitorPrivate * d_ptr
void conn_settings_notify_func(ConnSettingsType type, const char *id, const char *key, ConnSettingsValue *value, void *user_data)
IAPMonitorPrivate(IAPMonitor *monitor)
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
Splits the string into substrings wherever sep occurs, and returns the list of those strings...
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...