tsdevicedialog/tsdevicedialogplugin/tsrc/mocks/afmanager.h
changeset 117 c63ee96dbe5f
equal deleted inserted replaced
115:3ab5c078b490 117:c63ee96dbe5f
       
     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 #ifndef AFMANAGER_H
       
    18 #define AFMANAGER_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <QVariant>
       
    22 #include <QList>
       
    23 #include <QPixmap>
       
    24 
       
    25 class AfManager : public QObject
       
    26 {
       
    27 
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31     AfManager(QObject *parent = 0);
       
    32     ~AfManager();
       
    33 
       
    34 public slots:
       
    35     QList<QVariantHash> activitiesList();
       
    36     void launchActivity(const QString &uri);
       
    37     void launchActivity(int applicationId, const QString &activityId);
       
    38     void setActivitiesList(const QList<QVariantHash>&);
       
    39     void getThumbnail(QSize resolution, const QString &thumbnailId, void * =0);
       
    40     void emitDataChanged();
       
    41     void clearActivities();
       
    42 
       
    43 signals:
       
    44     void thumbnailReady(QPixmap, void *);
       
    45     void dataChanged();
       
    46 
       
    47 private:
       
    48     QList<QVariantHash> mData;
       
    49 };
       
    50 
       
    51 #endif // AFMANAGER_H