javauis/nokiauiapi_qt/softindicatorplugin/inc/javasoftindicatorplugin.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:10:53 +0300
changeset 79 2f468c1958d0
permissions -rw-r--r--
Revision: v2.2.15 Kit: 201039

/*******************************************************************************
 * 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 <QObject>
#include <QStringList>
#include <hbindicatorplugininterface.h>

/**
 * 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