43#include <QtCore/QtGlobal>
47#if defined(PROFILE_QT)
48 #define P_EXPORT Q_DECL_EXPORT
50 #define P_EXPORT Q_DECL_IMPORT
54 QString key, val, type;
56QDBusArgument &operator<<(QDBusArgument &a,
const MyStructure &mystruct);
57const QDBusArgument &operator>>(
const QDBusArgument &a,
MyStructure &mystruct);
71const QString
beep =
"meeting";
72const QString
loud =
"outdoors";
89 explicit Profile(QObject* parent = 0);
102 QString activeProfile();
110 bool setActiveProfile(QString name);
117 QStringList profileNames();
128 int volumeLevel(QString profileName);
137 bool isVibrationEnabled(QString profileName);
147 int touchscreenVibrationLevel(QString profileName);
159 bool setVolumeLevel(QString profileName,
int level);
169 bool setVibration(QString profileName,
bool enabled);
180 bool setTouchscreenVibrationLevel(QString profileName,
int level);
226 void handleProfileChanged(
bool changed,
bool active, QString profile, QList<MyStructure> keyValType);
229 ProfilePrivate*
const d_ptr;
230 Profile(ProfilePrivate* dd, QObject* parent = 0);
237 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:70
const QString loud
Definition profile.h:72
const QString beep
Definition profile.h:71
const QString ringing
Definition profile.h:69