Changeset View
Changeset View
Standalone View
Standalone View
src/pulseobject.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 48 | while (const char *key = pa_proplist_iterate(info->proplist, &it)) { | |||
---|---|---|---|---|---|
50 | const char *value = pa_proplist_gets(info->proplist, key); | 50 | const char *value = pa_proplist_gets(info->proplist, key); | ||
51 | if (!value) { | 51 | if (!value) { | ||
52 | qCDebug(PLASMAPA) << "property" << key << "not a string"; | 52 | qCDebug(PLASMAPA) << "property" << key << "not a string"; | ||
53 | continue; | 53 | continue; | ||
54 | } | 54 | } | ||
55 | Q_ASSERT(value); | 55 | Q_ASSERT(value); | ||
56 | m_properties.insert(QString::fromUtf8(key), QString::fromUtf8(value)); | 56 | m_properties.insert(QString::fromUtf8(key), QString::fromUtf8(value)); | ||
57 | } | 57 | } | ||
58 | emit propertiesChanged(); | 58 | Q_EMIT propertiesChanged(); | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | quint32 index() const; | 61 | quint32 index() const; | ||
62 | QString iconName() const; | 62 | QString iconName() const; | ||
63 | QVariantMap properties() const; | 63 | QVariantMap properties() const; | ||
64 | 64 | | |||
65 | signals: | 65 | Q_SIGNALS: | ||
66 | void propertiesChanged(); | 66 | void propertiesChanged(); | ||
67 | 67 | | |||
68 | protected: | 68 | protected: | ||
69 | explicit PulseObject(QObject *parent); | 69 | explicit PulseObject(QObject *parent); | ||
70 | ~PulseObject() override; | 70 | ~PulseObject() override; | ||
71 | 71 | | |||
72 | Context *context() const; | 72 | Context *context() const; | ||
73 | quint32 m_index; | 73 | quint32 m_index; | ||
Show All 10 Lines |