• Main Page
  • Classes
  • Files
  • File List

/home/bifh8/cs2009q3-i386/work/meegotouch-controlpanelapplets-0.20.61/src/soundsettingsapplet/alerttone.h

00001 /****************************************************************************
00002 **
00003 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
00004 ** All rights reserved.
00005 ** Contact: Nokia Corporation (directui@nokia.com)
00006 **
00007 ** This file is part of meegotouch-controlpanelsoundsettingsapplet.
00008 **
00009 ** If you have questions regarding the use of this file, please contact
00010 ** Nokia at directui@nokia.com.
00011 **
00012 ** This library is free software; you can redistribute it and/or
00013 ** modify it under the terms of the GNU Lesser General Public
00014 ** License version 2.1 as published by the Free Software Foundation
00015 ** and appearing in the file LICENSE.LGPL included in the packaging
00016 ** of this file.
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 /* !_ALERT_TONE_H_ */

Generated on Mon Jul 11 2011 12:00:31 for libMeegoControl by  doxygen 1.7.1