controlpanelui/src/cpprofilewrapper/src/cpprofilemodel.cpp
changeset 19 36aa4756ee82
parent 12 624337f114fe
child 33 0cfa53de576f
child 40 593f946f4fec
equal deleted inserted replaced
12:624337f114fe 19:36aa4756ee82
    61 }
    61 }
    62 
    62 
    63 /*
    63 /*
    64  * Get active profile's id
    64  * Get active profile's id
    65  */
    65  */
    66 int CpProfileModel::activeProfileId()
    66 int CpProfileModel::activeProfileId() const
    67 {
    67 {
    68     return d_ptr->activeProfileId();
    68     return d_ptr->activeProfileId();
    69 }
    69 }
    70 
    70 
    71 /*!
    71 /*!
    72      Get profile settings, store in center repository keys 
    72      Get profile settings, store in center repository keys 
    73  */
    73  */
    74 int CpProfileModel::profileSettings(int profileId, CpProfileSettings& profileSettings)
    74 void CpProfileModel::profileSettings(int profileId, CpProfileSettings& profileSettings)
    75 {
    75 {
    76     return d_ptr->profileSettings(profileId, profileSettings);
    76     d_ptr->profileSettings(profileId, profileSettings);
    77 }
    77 }
    78 
    78 
    79 /*!
    79 /*!
    80      Set profile settings from center repository keys
    80      Set profile settings from center repository keys
    81  */
    81  */
   137 
   137 
   138 /*!
   138 /*!
   139      Return the silence mode of device, silence mode will kill all outgoing 
   139      Return the silence mode of device, silence mode will kill all outgoing 
   140      audio.
   140      audio.
   141  */
   141  */
   142 bool CpProfileModel::isSilenceMode() const
   142 bool CpProfileModel::silenceMode() const
   143 {
   143 {
   144     return d_ptr->isSilenceMode();
   144     return d_ptr->silenceMode();
   145 }
   145 }
   146 
   146 
   147 /*!
   147 /*!
   148      Set silence mode for deivce
   148      Set silence mode for deivce
   149  */
   149  */
   153 }
   153 }
   154 
   154 
   155 /*!
   155 /*!
   156      Return the status of off line mode (air plane mode) of device
   156      Return the status of off line mode (air plane mode) of device
   157  */
   157  */
   158 bool CpProfileModel::isOffLineMode() const
   158 bool CpProfileModel::offLineMode() const
   159 {
   159 {
   160     return d_ptr->isOffLineMode();
   160     return d_ptr->offLineMode();
   161 }
   161 }
   162 
   162 
   163 /*!
   163 /*!
   164      Set off line mode of device
   164      Set off line mode of device
   165  */
   165  */