controlpanel/src/inc/cpprofilemodel.h
changeset 32 20bd089f4aaa
parent 31 2c9d3aa5bea2
child 33 6263db170452
equal deleted inserted replaced
31:2c9d3aa5bea2 32:20bd089f4aaa
     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 
       
    28 class PROFILE_WRAPPER_EXPORT CpProfileModel
       
    29     {
       
    30 public:
       
    31     CpProfileModel();
       
    32     ~CpProfileModel();
       
    33 
       
    34 public:
       
    35     int initiationFlag();
       
    36     QString ringTone();
       
    37     void setRingTone(const QString& filePath);
       
    38     QString messageTone();
       
    39     void setMessageTone(const QString& filePath);
       
    40     QString emailTone();
       
    41     void setEmailTone(const QString& filePath);
       
    42     QString calendarTone();
       
    43     void setCalendarTone(const QString& filePath);
       
    44     QString alarmTone();
       
    45     void setAlarmTone(const QString& filePath);
       
    46     int ringVolume();
       
    47     void setRingVolume(int volume);
       
    48     void activateBeep();
       
    49     bool isBeep();
       
    50     void activateSilent();
       
    51     bool isSilent();
       
    52     bool vibraStatus();
       
    53     void setVibraStatus(bool status);
       
    54     int keyVolume();
       
    55     void setKeyVolume(int volume);
       
    56     int screenVolume();
       
    57     void setScreenVolume(int volume);
       
    58     int screenVibra();
       
    59     void setScreenVibra(int volume);
       
    60 
       
    61 private:
       
    62     Q_DISABLE_COPY(CpProfileModel)
       
    63     
       
    64 private:
       
    65     CpProfileModelPrivate* dptr;
       
    66     };
       
    67 
       
    68 #endif