controlpanelui/src/inc/cpprofilemodel.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_H
       
    19 #define CPPROFILEMODEL_H
       
    20 
       
    21 #include "cpprofilewrappermacro.h"
       
    22 #include <QtCore/qglobal.h>
       
    23 #include <QString>
       
    24 
       
    25 class CpProfileModelPrivate;
       
    26 
       
    27 enum ProfileWrapperProfileId
       
    28     {
       
    29     EProfileWrapperGeneralId = 0,
       
    30     EProfileWrapperSilentId  = 1,
       
    31     EProfileWrapperMeetingId = 2
       
    32     };
       
    33 
       
    34 class PROFILE_WRAPPER_EXPORT CpProfileModel
       
    35     {
       
    36 public:
       
    37     CpProfileModel();
       
    38     ~CpProfileModel();
       
    39 
       
    40 public:
       
    41     int initiationFlag();
       
    42     QString profileName(int profileId);
       
    43     int activateProfile(int profileId);
       
    44     int activeProfileId();
       
    45     QString ringTone();
       
    46     int setRingTone(const QString& filePath);
       
    47     QString messageTone();
       
    48     int setMessageTone(const QString& filePath);
       
    49     QString emailTone();
       
    50     int setEmailTone(const QString& filePath);
       
    51     QString calendarTone();
       
    52     void setCalendarTone(const QString& filePath);
       
    53     QString alarmTone();
       
    54     void setAlarmTone(const QString& filePath);
       
    55     int ringVolume();
       
    56     void setRingVolume(int volume);
       
    57     void activateBeep();
       
    58     bool isBeep();
       
    59     void activateSilent();
       
    60     bool isSilent();
       
    61     bool vibraStatus();
       
    62     void setVibraStatus(bool status);
       
    63     int keyVolume();
       
    64     void setKeyVolume(int volume);
       
    65     int screenVolume();
       
    66     void setScreenVolume(int volume);
       
    67     int screenVibra();
       
    68     void setScreenVibra(int volume);
       
    69 
       
    70 private:
       
    71     Q_DISABLE_COPY(CpProfileModel)
       
    72     
       
    73 private:
       
    74     CpProfileModelPrivate* dptr;
       
    75     };
       
    76 
       
    77 #endif