controlpanelui/src/cpplugins/displayplugin/src/cpdisplaymodel.cpp
changeset 10 0a74be98a8bc
child 11 10d0dd0e43f1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/controlpanelui/src/cpplugins/displayplugin/src/cpdisplaymodel.cpp	Fri Mar 19 09:29:29 2010 +0200
@@ -0,0 +1,121 @@
+/*
+ * 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:  
+ *   
+ */
+
+#include <qglobal.h>
+#include "cpdisplaymodel.h"
+
+#ifdef Q_OS_SYMBIAN
+#include "cpdisplaymodel_p.h"
+#endif
+
+CpDisplayModel::CpDisplayModel()
+{
+#ifdef Q_OS_SYMBIAN
+    ptr = new CpDisplayModelPrivate();
+#endif
+}
+
+CpDisplayModel::~CpDisplayModel()
+{
+#ifdef Q_OS_SYMBIAN
+    delete ptr;
+    ptr = 0;
+#endif
+}
+
+bool CpDisplayModel::isKeyguardSupported()
+{
+#ifdef Q_OS_SYMBIAN
+    return ptr->isKeyguardSupported();
+#else
+    return 0;
+#endif
+}
+
+int CpDisplayModel::keyguard()
+{
+#ifdef Q_OS_SYMBIAN
+    return ptr->keyguard();
+#else
+    return 0;
+#endif
+}
+
+void CpDisplayModel::setKeyguard(int value)
+{
+#ifdef Q_OS_SYMBIAN
+    ptr->setKeyguard(value);
+#else
+    Q_UNUSED(value);
+#endif
+}
+
+bool CpDisplayModel::isBacklightSupported()
+{
+#ifdef Q_OS_SYMBIAN
+    return ptr->isBacklightSupported();
+#else
+	return false;
+#endif
+}
+
+int CpDisplayModel::backlight()
+{
+#ifdef Q_OS_SYMBIAN
+    return ptr->backlight();
+#else
+    return 0;
+#endif
+}
+
+void CpDisplayModel::setBacklight(int value)
+{
+#ifdef Q_OS_SYMBIAN
+    ptr->setBacklight(value);
+#else
+    Q_UNUSED(value);
+#endif
+}
+
+bool CpDisplayModel::isBrightnessSupported()
+{
+#ifdef Q_OS_SYMBIAN
+    return ptr->isBrightnessSupported();
+#else
+	return false;
+#endif
+}
+
+int CpDisplayModel::brightness()
+{
+#ifdef Q_OS_SYMBIAN
+    return ptr->brightness();
+#else
+    return 0;
+#endif    
+}
+
+void CpDisplayModel::setBrightness(int value)
+{
+#ifdef Q_OS_SYMBIAN
+    ptr->setBrightness(value);
+#else
+    Q_UNUSED(value);
+#endif
+}
+
+// End of the file