controlpanelui/src/cpplugins/displayplugin/src/cpdisplaymodel.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Mar 2010 09:29:29 +0200
changeset 10 0a74be98a8bc
child 11 10d0dd0e43f1
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:  
 *   
 */

#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