taskswitcher/tsdevicedialogplugin/inc/tsdevicedialogplugin.h
changeset 125 26079c1bb561
parent 116 305818acdca4
equal deleted inserted replaced
123:d1dadafc5584 125:26079c1bb561
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TSDEVICEDIALOGPLUGIN_H
       
    19 #define TSDEVICEDIALOGPLUGIN_H
       
    20 
       
    21 #include <QVariantMap>
       
    22 
       
    23 #include <HbDeviceDialogPlugin>
       
    24 
       
    25 #include "tsdocumentloader.h"
       
    26 
       
    27 class QAbstractListModel;
       
    28 class TsTaskMonitor;
       
    29 
       
    30 class TsDeviceDialogPlugin : public HbDeviceDialogPlugin
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34 public:
       
    35     TsDeviceDialogPlugin();
       
    36     ~TsDeviceDialogPlugin();
       
    37 
       
    38     bool accessAllowed(const QString &deviceDialogType,
       
    39                        const QVariantMap &parameters,
       
    40                        const QVariantMap &securityInfo) const;
       
    41     HbDeviceDialogInterface *createDeviceDialog(const QString &deviceDialogType,
       
    42                                                 const QVariantMap &parameters);
       
    43     bool deviceDialogInfo(const QString &deviceDialogType,
       
    44                           const QVariantMap &parameters,
       
    45                           DeviceDialogInfo *info) const;
       
    46     QStringList deviceDialogTypes() const;
       
    47     PluginFlags pluginFlags() const;
       
    48     int error() const;
       
    49 
       
    50 private:
       
    51     TsDocumentLoader mLoader;
       
    52     QAbstractListModel *mModel;
       
    53     TsTaskMonitor *mStorage;
       
    54 
       
    55     bool mTriedToLoadTranslation;
       
    56 
       
    57     Q_DISABLE_COPY(TsDeviceDialogPlugin)
       
    58 };
       
    59 
       
    60 #endif // TSDEVICEDIALOGPLUGIN_H