00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _ALERT_TONE_H_
00021 #define _ALERT_TONE_H_
00022
00023 #include <meegocontrolexport.h>
00024 #include "qprofilevalue.h"
00025
00043 class MC_EXPORT AlertTone: public QProfileValue
00044 {
00045 Q_OBJECT
00046
00047 public:
00048 AlertTone(const QString &key);
00049
00050 static QList<AlertTone *> alertTones();
00051
00052 QString fileName();
00053 QString niceName();
00054 QString trackerId();
00055
00056 protected:
00057 virtual void fetchFromBackend();
00058 virtual void realSetValue(const QVariant &newValue);
00059
00060 signals:
00067 void refreshed();
00068
00069 private slots:
00070 void dataReceived (
00071 const QString &filename,
00072 const QString &title,
00073 const QString &trackerId);
00074
00075 private:
00076 void maybeUpdate();
00077 QString m_niceName;
00078 QString m_trackerId;
00079
00080 #ifdef UNIT_TEST
00081 friend class Ut_AlertToneTests;
00082 #endif
00083 };
00084
00085 #endif