controlpanelui/src/cpprofilewrapper/src/cpprofilemodel_p.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Mar 2010 09:29:29 +0200
changeset 10 0a74be98a8bc
child 12 624337f114fe
permissions -rw-r--r--
Revision: 201005 Kit: 201011

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0""
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  
*
*/

#ifndef CPPROFILEMODEL_P_H
#define CPPROFILEMODEL_P_H

#include <qglobal.h>

class MProfileEngineExtended;
class MProfileExtended;
class MProfileFeedbackSettings;
class MProfileSetFeedbackSettings;
class CRepository;
struct TProfileToneSettings;


class CpProfileModelPrivate
    {
public:
    CpProfileModelPrivate();
    ~CpProfileModelPrivate();

public:
    int initiationFlag();
    QString profileName(int profileId);
    int activateProfile(int profileId);
    int activeProfileId();
    QString ringTone();
    int setRingTone(const QString& filePath);
    QString messageTone();
    int setMessageTone(const QString& filePath);
    QString emailTone();
    int setEmailTone(const QString& filePath);
    QString calendarTone();
    void setCalendarTone(const QString& filePath);
    QString alarmTone();
    void setAlarmTone(const QString& filePath);
    int ringVolume();
    void setRingVolume(int volume);
    void activateBeep();
    bool isBeep();
    void activateSilent();
    bool isSilent();
    bool vibraStatus();
    void setVibraStatus(bool status);
    int keyVolume();
    void setKeyVolume(int volume);
    int screenVolume();
    void setScreenVolume(int volume);
    int screenVibra();
    void setScreenVibra(int volume);

#ifdef Q_OS_SYMBIAN
private:
    void UpdateProfileL();
    int commitChange();

private:
    MProfileEngineExtended* mEngine;
    MProfileExtended* mProfileExt;
    TProfileToneSettings* mToneSettings;
    const MProfileFeedbackSettings* mFeedbackSettings;
    MProfileSetFeedbackSettings* mSetFeedbackSettings;
    CRepository* mVibraCenRep;
    bool mInitErrFlag;
#endif // Q_OS_SYMBIAN
    };

#endif