activityfw/activityserviceplugin/inc/afactivation_p.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 18 Aug 2010 10:05:49 +0300
changeset 109 e0aa398e6810
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
#ifndef AFACTIVATION_P_H
#define AFACTIVATION_P_H

#include "afactivities_global.h"

#include <QObject>
#include <QString>
#include <QStringList>
#include <QVariantHash>
#include <QSharedPointer>

#include "afstorageproxy.h"

class AfActivationPrivate : public QObject
{
    Q_OBJECT
    
public:
    AfActivationPrivate(const QSharedPointer<AfStorageProxy> &connection, QObject *parent = 0);
       
public:
    QVariantHash parameters() const;
    Af::ActivationReason reason() const;
    QString name() const;
       
signals:
    void activated(Af::ActivationReason reason, QString name, QVariantHash parameters);        
        
private slots:
    void handleActivityRequest(const QString &activityId);
    void bringToForeground();        
               
private:
    QVariantHash mParameters;
    Af::ActivationReason mReason;
    QString mName;
        
private:
    QSharedPointer<AfStorageProxy> mConnection;     

};

#endif // AFACTIVATION_P_H