controlpanelui/src/cpprofilewrapper/src/cpprofilemodel_p.h
changeset 10 0a74be98a8bc
child 12 624337f114fe
equal deleted inserted replaced
0:254040eb3b7d 10:0a74be98a8bc
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0""
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPPROFILEMODEL_P_H
       
    19 #define CPPROFILEMODEL_P_H
       
    20 
       
    21 #include <qglobal.h>
       
    22 
       
    23 class MProfileEngineExtended;
       
    24 class MProfileExtended;
       
    25 class MProfileFeedbackSettings;
       
    26 class MProfileSetFeedbackSettings;
       
    27 class CRepository;
       
    28 struct TProfileToneSettings;
       
    29 
       
    30 
       
    31 class CpProfileModelPrivate
       
    32     {
       
    33 public:
       
    34     CpProfileModelPrivate();
       
    35     ~CpProfileModelPrivate();
       
    36 
       
    37 public:
       
    38     int initiationFlag();
       
    39     QString profileName(int profileId);
       
    40     int activateProfile(int profileId);
       
    41     int activeProfileId();
       
    42     QString ringTone();
       
    43     int setRingTone(const QString& filePath);
       
    44     QString messageTone();
       
    45     int setMessageTone(const QString& filePath);
       
    46     QString emailTone();
       
    47     int setEmailTone(const QString& filePath);
       
    48     QString calendarTone();
       
    49     void setCalendarTone(const QString& filePath);
       
    50     QString alarmTone();
       
    51     void setAlarmTone(const QString& filePath);
       
    52     int ringVolume();
       
    53     void setRingVolume(int volume);
       
    54     void activateBeep();
       
    55     bool isBeep();
       
    56     void activateSilent();
       
    57     bool isSilent();
       
    58     bool vibraStatus();
       
    59     void setVibraStatus(bool status);
       
    60     int keyVolume();
       
    61     void setKeyVolume(int volume);
       
    62     int screenVolume();
       
    63     void setScreenVolume(int volume);
       
    64     int screenVibra();
       
    65     void setScreenVibra(int volume);
       
    66 
       
    67 #ifdef Q_OS_SYMBIAN
       
    68 private:
       
    69     void UpdateProfileL();
       
    70     int commitChange();
       
    71 
       
    72 private:
       
    73     MProfileEngineExtended* mEngine;
       
    74     MProfileExtended* mProfileExt;
       
    75     TProfileToneSettings* mToneSettings;
       
    76     const MProfileFeedbackSettings* mFeedbackSettings;
       
    77     MProfileSetFeedbackSettings* mSetFeedbackSettings;
       
    78     CRepository* mVibraCenRep;
       
    79     bool mInitErrFlag;
       
    80 #endif // Q_OS_SYMBIAN
       
    81     };
       
    82 
       
    83 #endif