40 #include <QStringList>
43 #include <QtCore/QtGlobal>
47 #if defined(PROFILE_QT)
48 # define P_EXPORT Q_DECL_EXPORT
50 # if defined (Q_OS_WIN)
51 # define P_EXPORT Q_DECL_IMPORT
53 # define P_EXPORT Q_DECL_EXPORT
58 QString key, val, type;
60 QDBusArgument &operator<<(QDBusArgument &a,
const MyStructure &mystruct);
61 const QDBusArgument &operator>>(
const QDBusArgument &a,
MyStructure &mystruct);
75 const QString
beep =
"meeting";
76 const QString
loud =
"outdoors";
93 explicit Profile(QObject* parent = 0);
106 QString activeProfile();
114 bool setActiveProfile(QString name);
121 QStringList profileNames();
132 int volumeLevel(QString profileName);
141 bool isVibrationEnabled(QString profileName);
151 int touchscreenVibrationLevel(QString profileName);
163 bool setVolumeLevel(QString profileName,
int level);
173 bool setVibration(QString profileName,
bool enabled);
184 bool setTouchscreenVibrationLevel(QString profileName,
int level);
230 void handleProfileChanged(
bool changed,
bool active, QString profile, QList<MyStructure> keyValType);
233 ProfilePrivate*
const d_ptr;
234 Profile(ProfilePrivate* dd, QObject* parent = 0);
241 friend class Ut_Profile;
void activeProfileChanged(QString newActiveProfileName)
void volumeLevelChanged(QString profileName, int level)
void touchscreenVibrationLevelChanged(QString profileName, int level)
void vibrationChanged(QString profileName, bool enabled)
const QString silent
Definition: profile.h:74
const QString loud
Definition: profile.h:76
const QString beep
Definition: profile.h:75
const QString ringing
Definition: profile.h:73