homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsoperatorhandler.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 13:30:16 +0300
changeset 55 03646e8da489
parent 46 23b5d6a29cce
child 71 1db7cc813a4e
permissions -rw-r--r--
Revision: 201021 Kit: 2010123

/*
 * 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: hsoperatorhandler.cpp
 *
 */

#include "hsoperatorhandler.h"
#ifndef NO_QT_EXTENSIONS
#include "hsoperatorhandler_p.h"
#else
#include <HbIcon>
#endif

/*!
    \class HsOperatorHandler
    \ingroup group_hsmenustateplugin

    \brief

    \sa
*/

/*!
 Constructor
 \param parent parent object
 */
HsOperatorHandler::HsOperatorHandler(QObject *parent):
    QObject(parent),
#ifndef NO_QT_EXTENSIONS
    m_q(new HsOperatorHandlerPrivate(this))
#else
    m_q(0)
#endif
{
}

/*!
 Destructor
 */
HsOperatorHandler::~HsOperatorHandler()
{
}

/*!
 Returns Operators icon
 \retval icon
 */
HbIcon HsOperatorHandler::icon()
{
#ifndef NO_QT_EXTENSIONS
    return m_q->icon();
#else
    return HbIcon();
#endif
}

/*!
 Returns Operators text
 \retval icon
 */
QString HsOperatorHandler::text()
{
#ifndef NO_QT_EXTENSIONS
    return m_q->text();
#else
    return QString();
#endif
}


/*!
 Open Operator application or related url
 */
void HsOperatorHandler::action()
{
#ifndef NO_QT_EXTENSIONS
    m_q->action();
#endif
}