diff -r 4ad59aaee882 -r 2f468c1958d0 javauis/nokiauiapi_qt/softindicatorplugin/inc/javasoftindicatorplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javauis/nokiauiapi_qt/softindicatorplugin/inc/javasoftindicatorplugin.h Mon Oct 04 00:10:53 2010 +0300 @@ -0,0 +1,75 @@ +/******************************************************************************* + * Copyright (c) 2009, 2010 Nokia Corporation and/or its subsidiary(-ies). + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Nokia Corporation - initial implementation + *******************************************************************************/ + +#ifndef JAVASOFTINDICATORPLUGIN_H +#define JAVASOFTINDICATORPLUGIN_H + +#include +#include +#include + +/** + * Main class of java indicator plugin. + */ +class JavaSoftIndicatorPlugin : public QObject, + public HbIndicatorPluginInterface + { + Q_OBJECT + Q_INTERFACES(HbIndicatorPluginInterface) + +public: + /** + * Constructor + */ + JavaSoftIndicatorPlugin(); + + /** + * Destructor + */ + virtual ~JavaSoftIndicatorPlugin(); + + /** + * @see HbIndicatorPluginInterface + */ + QStringList indicatorTypes() const; + + /** + * @see HbIndicatorPluginInterface + */ + bool accessAllowed(const QString &indicatorType, + const QVariantMap &securityInfo) const; + + /** + * @see HbIndicatorPluginInterface + */ + HbIndicatorInterface* createIndicator(const QString &indicatorType); + + /** + * @see HbIndicatorPluginInterface + */ + int error() const; + +private: + Q_DISABLE_COPY( JavaSoftIndicatorPlugin) + + /** + * Error value + */ + int iError; + + /** + * Indicator types + * supported indicator types. + */ + //QStringList iIndicatorTypes; + }; + +#endif // JAVASOFTINDICATORPLUGIN_H