controlpanelui/src/inc/cpprofilemodel.h
changeset 33 0cfa53de576f
parent 19 36aa4756ee82
child 41 ab0490982943
equal deleted inserted replaced
29:313976a11e23 33:0cfa53de576f
    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;
    64     QStringList profileNames()const;
    58     QStringList profileNames()const;
    65     int activateProfile(int profileId);
    59     int activateProfile(int profileId);
    66     int activeProfileId() const;
    60     int activeProfileId() const;
       
    61     
    67     void profileSettings(int profileId, CpProfileSettings& profileSettings);
    62     void profileSettings(int profileId, CpProfileSettings& profileSettings);
    68     int setProfileSettings(int profileId, CpProfileSettings& profileSettings );
    63     void setProfileSettings(int profileId, CpProfileSettings& profileSettings );
    69     
    64     
    70     /*!
       
    71      * set ring tone in personalization group in control panel's homeview
       
    72      */
       
    73     QString ringTone() const;
    65     QString ringTone() const;
    74     void setRingTone(const QString& filePath);
    66     void setRingTone(const QString& filePath);
    75     
       
    76    /* QString alarmTone();
       
    77     void setAlarmTone(const QString& filePath);*/
       
    78     
    67     
    79     int masterVolume() const;
    68     int masterVolume() const;
    80     void setMasterVolume(int volume);
    69     void setMasterVolume(int volume);
    81     
    70     
    82     
    71     
    83     bool masterVibra() const;
    72     bool masterVibra() const;
    84     void setMasterVibra(bool isVibra);
    73     void setMasterVibra(bool isVibra);
    85         
    74         
    86     bool silenceMode() const;
    75     bool silenceMode() const;
    87     void setSilenceMode(bool isSlience);
    76     void setSilenceMode(bool isSlience);
    88     
       
    89     bool offLineMode() const;    
       
    90     void setOffLineMode(bool isOffLine);
       
    91     
    77     
    92     /*!
    78     /*!
    93      *  For profile settings 
    79      *  For profile settings 
    94      */
    80      */
    95     
    81     
   106     void setNotificationTone(int profileId, bool isActive);
    92     void setNotificationTone(int profileId, bool isActive);
   107     
    93     
   108     int keyTouchScreenTone(int profileId) const;
    94     int keyTouchScreenTone(int profileId) const;
   109     void setKeyTouchScreenTone(int profileId, int level);
    95     void setKeyTouchScreenTone(int profileId, int level);
   110     
    96     
   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;
    97     int keyTouchScreenVibra(int profileId)const;
   127     void setKeyTouchScreenVibra(int profileId, int level);
    98     void setKeyTouchScreenVibra(int profileId, int level);
   128 
    99 
   129 private:
   100 private:
   130     CpProfileModelPrivate *const d_ptr;
   101     CpProfileModelPrivate *const d_ptr;