securitysettings/eapqtdialogs/inc/eapdialogplugin.h
author hgs
Thu, 24 Jun 2010 11:23:08 +0300
changeset 34 ad1f037f1ac2
parent 26 9abfd4f00d37
child 36 c98682f98478
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
34
hgs
parents: 26
diff changeset
    14
* Description: Eap Dialog Plugin
26
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
34
hgs
parents: 26
diff changeset
    18
/*
hgs
parents: 26
diff changeset
    19
* %version: 3 %
hgs
parents: 26
diff changeset
    20
*/
26
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#ifndef ____EAPDIALOG_H__PLUGIN_H__
hgs
parents:
diff changeset
    23
#define ____EAPDIALOG_H__PLUGIN_H__
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
#include <QObject>
hgs
parents:
diff changeset
    26
#include <hbdevicedialogplugin.h>
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
hgs
parents:
diff changeset
    29
class EapDialogPlugin : public HbDeviceDialogPlugin
hgs
parents:
diff changeset
    30
{
hgs
parents:
diff changeset
    31
    Q_OBJECT
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
public:
hgs
parents:
diff changeset
    34
    
hgs
parents:
diff changeset
    35
    /* Constructor */
hgs
parents:
diff changeset
    36
    EapDialogPlugin();
hgs
parents:
diff changeset
    37
    /* Destructor */
hgs
parents:
diff changeset
    38
    ~EapDialogPlugin();
hgs
parents:
diff changeset
    39
    
hgs
parents:
diff changeset
    40
    /* Check whether access is allowed, true is always returned */
hgs
parents:
diff changeset
    41
    bool accessAllowed(const QString &deviceDialogType,
hgs
parents:
diff changeset
    42
        const QVariantMap &parameters, const QVariantMap &securityInfo) const;
hgs
parents:
diff changeset
    43
    
hgs
parents:
diff changeset
    44
    /* Creates the dialog widget */
hgs
parents:
diff changeset
    45
    HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType,
hgs
parents:
diff changeset
    46
        const QVariantMap &parameters);
hgs
parents:
diff changeset
    47
    
hgs
parents:
diff changeset
    48
    /* Returns the device dialog type */
hgs
parents:
diff changeset
    49
    bool deviceDialogInfo(const QString &deviceDialogType,
hgs
parents:
diff changeset
    50
        const QVariantMap &parameters, DeviceDialogInfo *info) const;
hgs
parents:
diff changeset
    51
    
hgs
parents:
diff changeset
    52
    /* Returns a list of dialog types that this plugin implements.
hgs
parents:
diff changeset
    53
     * Only one dialog type is supported.
hgs
parents:
diff changeset
    54
     */
hgs
parents:
diff changeset
    55
    QStringList deviceDialogTypes() const;
hgs
parents:
diff changeset
    56
    
hgs
parents:
diff changeset
    57
    /* Returns the possible plugin flags, there are none */
hgs
parents:
diff changeset
    58
    PluginFlags pluginFlags() const;
hgs
parents:
diff changeset
    59
    
hgs
parents:
diff changeset
    60
    /* Not supported */
hgs
parents:
diff changeset
    61
    int error() const;
hgs
parents:
diff changeset
    62
hgs
parents:
diff changeset
    63
private:
hgs
parents:
diff changeset
    64
    Q_DISABLE_COPY(EapDialogPlugin)
hgs
parents:
diff changeset
    65
hgs
parents:
diff changeset
    66
};
hgs
parents:
diff changeset
    67
hgs
parents:
diff changeset
    68
#endif // ___EAPDIALOG_H__