activityfw/activityserviceplugin/inc/activitymanager.h
changeset 80 397d00875918
child 99 7aaf39b772ac
equal deleted inserted replaced
73:4bc7b118b3df 80:397d00875918
       
     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 ACTIVITYMANAGER_H
       
    18 #define ACTIVITYMANAGER_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <QVariant>
       
    22 #include <QList>
       
    23 #include <QPixmap>
       
    24 #include <QSize>
       
    25 
       
    26 class ActivityManagerPrivate;
       
    27 
       
    28 class ActivityManager : public QObject
       
    29 {
       
    30 
       
    31     Q_OBJECT
       
    32 
       
    33 public:
       
    34     ActivityManager(QObject *parent = 0);
       
    35     ~ActivityManager();
       
    36 
       
    37 public slots:
       
    38     QList<QVariantHash> activitiesList();
       
    39     void launchActivity(const QString &uri);
       
    40     void launchActivity(const QUrl &uri);
       
    41     void launchActivity(int applicationId, const QString &activityId, const QVariantHash& parameters = QVariantHash());
       
    42     void getThumbnail(QSize resolution,const QString &thumbnailPath, void *data =0);
       
    43 
       
    44 signals:
       
    45     void thumbnailReady(QPixmap, void *);
       
    46     void dataChanged();
       
    47 
       
    48 private:
       
    49     ActivityManagerPrivate *d_ptr;
       
    50 
       
    51     friend class ActivityManagerPrivate;
       
    52 };
       
    53 
       
    54 #endif // ACTIVITYMANAGER_H