30 #ifndef NOTIFICATION_ITEM_H
31 #define NOTIFICATION_ITEM_H
34 #include "qsettings.h"
35 #include <qstringlist.h>
40 #define DECLARE_SOUND(number) \
41 QString getSound##number() const { return _sound##number; } \
42 void setSound##number(QString text) { _sound##number = text; }
51 enum { eDefaultTimeout = 15 };
53 enum {
never, beforeFirst, beforeSecond, afterSecond };
71 bool getCurrentUpdatePlayed()
const {
return _currentUpdatePlayed; }
107 bool mute()
const {
return _mute; }
110 void saveState(QSettings *settings)
const;
111 void restoreState(QSettings *settings);
116 void serialize(QDataStream &stream);
117 void deserialize(QDataStream &stream);
134 QStringList &toSoundList();
142 QString getSoundCaption(QString fileName);
145 void startTimer(
int value);
151 void startExpireTimer();
152 void stopExpireTimer();
154 void disposeExpireTimer();
163 QString checkSoundExists(QString fileName);
166 bool _currentUpdatePlayed;
173 QTimer *_expireTimer;
176 QStringList _messageSequence;
179 QString _soundCollectionPath;
182 QString _currentLanguage;
188 QString _objectField;
202 QVariant _singleValue;
221 #endif // NotificationItem_H
QVariant singleValue() const
void setObjectField(QString text)
QString getObjectField() const
void setMessageSequence(QStringList sequence)
QString getCurrentLanguage() const
DECLARE_SOUND(1) DECLARE_SOUND(2) DECLARE_SOUND(3) bool getCurrentUpdatePlayed() const
void setSayOrder(int text)
void setCurrentUpdatePlayed(bool value)
QTimer * getExpireTimer() const
void setDataObject(QString text)
static QStringList sayOrderValues
void setSoundCollectionPath(QString path)
static QStringList retryValues
QString getSoundCollectionPath() const
double valueRange2() const
QTimer * getTimer() const
QString getDataObject() const
Q_DECLARE_METATYPE(Core::Internal::MenuActionContainer *) using namespace Core
void setCurrentLanguage(QString text)
void setSingleValue(QVariant value)
void setCondition(int value)
QStringList getMessageSequence() const
void setLifetime(int value)
void setRetryValue(int value)
void setValueRange2(double value)