blob: 3c3847323ae4614acb0791ac7f17b2ab1926bb46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#ifndef SETTINGS_H
#define SETTINGS_H
#include <MDConfGroup>
class Settings : public MDConfGroup
{
Q_OBJECT
Q_PROPERTY(QString profileWhenConnected MEMBER profileWhenConnected NOTIFY profileWhenConnectedChanged)
Q_PROPERTY(QString profileWhenDisconnected MEMBER profileWhenDisconnected NOTIFY profileWhenDisconnectedChanged)
Q_PROPERTY(bool transliterateMessage MEMBER transliterateMessage NOTIFY transliterateMessageChanged)
Q_PROPERTY(bool useSystemVolume MEMBER useSystemVolume NOTIFY useSystemVolumeChanged)
Q_PROPERTY(bool incomingCallNotification MEMBER incomingCallNotification NOTIFY incomingCallNotificationChanged)
Q_PROPERTY(bool notificationsCommhistoryd MEMBER notificationsCommhistoryd NOTIFY notificationsCommhistorydChanged)
Q_PROPERTY(bool notificationsMissedCall MEMBER notificationsMissedCall NOTIFY notificationsMissedCallChanged)
Q_PROPERTY(bool notificationsEmails MEMBER notificationsEmails NOTIFY notificationsEmailsChanged)
Q_PROPERTY(bool notificationsMitakuuluu MEMBER notificationsMitakuuluu NOTIFY notificationsMitakuuluuChanged)
Q_PROPERTY(bool notificationsTwitter MEMBER notificationsTwitter NOTIFY notificationsTwitterChanged)
Q_PROPERTY(bool notificationsFacebook MEMBER notificationsFacebook NOTIFY notificationsFacebookChanged)
Q_PROPERTY(bool notificationsOther MEMBER notificationsOther NOTIFY notificationsOtherChanged)
Q_PROPERTY(bool notificationsAll MEMBER notificationsAll NOTIFY notificationsAllChanged)
Q_PROPERTY(QString accountToken MEMBER accountToken NOTIFY accountTokenChanged)
QString profileWhenConnected;
QString profileWhenDisconnected;
bool transliterateMessage;
bool useSystemVolume;
bool incomingCallNotification;
bool notificationsCommhistoryd;
bool notificationsMissedCall;
bool notificationsEmails;
bool notificationsMitakuuluu;
bool notificationsTwitter;
bool notificationsFacebook;
bool notificationsOther;
bool notificationsAll;
QString accountToken;
public:
explicit Settings(QObject *parent = 0) :
MDConfGroup("/org/pebbled/settings", parent, BindProperties)
{ resolveMetaObject(); }
signals:
void profileWhenConnectedChanged();
void profileWhenDisconnectedChanged();
void transliterateMessageChanged();
void useSystemVolumeChanged();
void incomingCallNotificationChanged();
void notificationsCommhistorydChanged();
void notificationsMissedCallChanged();
void notificationsEmailsChanged();
void notificationsMitakuuluuChanged();
void notificationsTwitterChanged();
void notificationsFacebookChanged();
void notificationsOtherChanged();
void notificationsAllChanged();
void accountTokenChanged();
};
#endif // SETTINGS_H
|