controlpanelui/src/inc/cpprofilemodel.h
changeset 40 593f946f4fec
parent 19 36aa4756ee82
equal deleted inserted replaced
22:a5692c68d772 40:593f946f4fec
    42     QString mEmailTone;
    42     QString mEmailTone;
    43     QString mReminderTone;
    43     QString mReminderTone;
    44     bool mNotificationTone;
    44     bool mNotificationTone;
    45     int mKeyTouchScreenTone; // 0-5
    45     int mKeyTouchScreenTone; // 0-5
    46     
    46     
    47     bool mRingAlertVibra;
       
    48     bool mMessageVibra;
       
    49     bool mEmailVibra;
       
    50     bool mReminderAlertVibra;
       
    51     bool mNotificationVibra;
       
    52     int mKeyTouchScreenVibra; //0-5    
    47     int mKeyTouchScreenVibra; //0-5    
    53 };
    48 };
    54 class PROFILE_WRAPPER_EXPORT CpProfileModel : QObject
    49 class PROFILE_WRAPPER_EXPORT CpProfileModel : QObject
    55 {
    50 {
    56     Q_OBJECT
    51     Q_OBJECT
    57 public:
    52 public:
    58     CpProfileModel(QObject *parent = 0);
    53     CpProfileModel(QObject *parent = 0);
    59     ~CpProfileModel();
    54     ~CpProfileModel();
    60 
    55 
    61 public:
    56 public:
    62     int initiationFlag();
       
    63     QString profileName(int profileId)const;
    57     QString profileName(int profileId)const;
       
    58     void setProfileName(int profileId, const QString &name);
    64     QStringList profileNames()const;
    59     QStringList profileNames()const;
    65     int activateProfile(int profileId);
    60     int activateProfile(int profileId);
    66     int activeProfileId() const;
    61     int activeProfileId() const;
       
    62     
    67     void profileSettings(int profileId, CpProfileSettings& profileSettings);
    63     void profileSettings(int profileId, CpProfileSettings& profileSettings);
    68     int setProfileSettings(int profileId, CpProfileSettings& profileSettings );
    64     void setProfileSettings(int profileId, CpProfileSettings& profileSettings );
    69     
    65     
    70     /*!
       
    71      * set ring tone in personalization group in control panel's homeview
       
    72      */
       
    73     QString ringTone() const;
    66     QString ringTone() const;
    74     void setRingTone(const QString& filePath);
    67     void setRingTone(const QString& filePath);
    75     
       
    76    /* QString alarmTone();
       
    77     void setAlarmTone(const QString& filePath);*/
       
    78     
    68     
    79     int masterVolume() const;
    69     int masterVolume() const;
    80     void setMasterVolume(int volume);
    70     void setMasterVolume(int volume);
    81     
    71     
    82     
    72     
    83     bool masterVibra() const;
    73     bool masterVibra() const;
    84     void setMasterVibra(bool isVibra);
    74     void setMasterVibra(bool isVibra);
    85         
    75         
    86     bool silenceMode() const;
    76     bool silenceMode() const;
    87     void setSilenceMode(bool isSlience);
    77     void setSilenceMode(bool isSlience);
    88     
       
    89     bool offLineMode() const;    
       
    90     void setOffLineMode(bool isOffLine);
       
    91     
    78     
    92     /*!
    79     /*!
    93      *  For profile settings 
    80      *  For profile settings 
    94      */
    81      */
    95     
    82     
   106     void setNotificationTone(int profileId, bool isActive);
    93     void setNotificationTone(int profileId, bool isActive);
   107     
    94     
   108     int keyTouchScreenTone(int profileId) const;
    95     int keyTouchScreenTone(int profileId) const;
   109     void setKeyTouchScreenTone(int profileId, int level);
    96     void setKeyTouchScreenTone(int profileId, int level);
   110     
    97     
   111     bool ringAlertVibra(int profileId) const;
       
   112     void setRingAlertVibra(int profileId, bool isActive);
       
   113     
       
   114     bool messageVibra(int profileId) const;
       
   115     void setMessageVibra(int profileId, bool isActive);
       
   116     
       
   117     bool emailVibra(int profileId) const;
       
   118     void setEmailVibra(int profileId, bool isActive);
       
   119     
       
   120     bool reminderVibra(int profileId) const;
       
   121     void setReminderVibra(int profileId, bool isActive);
       
   122     
       
   123     bool notificationVibra(int profileId) const;
       
   124     void setNotificationVibra(int profileId, bool isActive);
       
   125     
       
   126     int keyTouchScreenVibra(int profileId)const;
    98     int keyTouchScreenVibra(int profileId)const;
   127     void setKeyTouchScreenVibra(int profileId, int level);
    99     void setKeyTouchScreenVibra(int profileId, int level);
   128 
   100 
   129 private:
   101 private:
   130     CpProfileModelPrivate *const d_ptr;
   102     CpProfileModelPrivate *const d_ptr;