homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsoperatorhandler.cpp
changeset 46 23b5d6a29cce
child 71 1db7cc813a4e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/src/hsoperatorhandler.cpp	Fri May 14 15:43:04 2010 +0300
@@ -0,0 +1,92 @@
+/*
+ * 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
+}
+
+