--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/controlpanelui/src/inc/cpprofilemodel.h Fri Mar 19 09:29:29 2010 +0200
@@ -0,0 +1,77 @@
+/*
+* 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_H
+#define CPPROFILEMODEL_H
+
+#include "cpprofilewrappermacro.h"
+#include <QtCore/qglobal.h>
+#include <QString>
+
+class CpProfileModelPrivate;
+
+enum ProfileWrapperProfileId
+ {
+ EProfileWrapperGeneralId = 0,
+ EProfileWrapperSilentId = 1,
+ EProfileWrapperMeetingId = 2
+ };
+
+class PROFILE_WRAPPER_EXPORT CpProfileModel
+ {
+public:
+ CpProfileModel();
+ ~CpProfileModel();
+
+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);
+
+private:
+ Q_DISABLE_COPY(CpProfileModel)
+
+private:
+ CpProfileModelPrivate* dptr;
+ };
+
+#endif