107
|
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 |
#include "afactivation.h"
|
|
19 |
#include "afactivation_p.h"
|
|
20 |
|
|
21 |
#include "afstorageproxy.h"
|
|
22 |
|
|
23 |
AfActivation::AfActivation(QObject *parent) : QObject(parent), d_ptr(0)
|
|
24 |
{
|
|
25 |
QSharedPointer<AfStorageProxy> connection(new AfStorageProxy());
|
|
26 |
QT_TRAP_THROWING(
|
125
|
27 |
if(!connection->waitActivity())
|
|
28 |
{
|
|
29 |
User::Leave(KErrGeneral);
|
|
30 |
}
|
107
|
31 |
)
|
|
32 |
|
|
33 |
d_ptr = new AfActivationPrivate(connection, this);
|
|
34 |
connect(d_ptr, SIGNAL(activated(Af::ActivationReason,QString,QVariantHash)), this, SIGNAL(activated(Af::ActivationReason,QString,QVariantHash)));
|
|
35 |
}
|
|
36 |
|
|
37 |
QVariantHash AfActivation::parameters() const
|
|
38 |
{
|
|
39 |
return d_ptr->parameters();
|
|
40 |
}
|
|
41 |
|
|
42 |
Af::ActivationReason AfActivation::reason() const
|
|
43 |
{
|
|
44 |
return d_ptr->reason();
|
|
45 |
}
|
|
46 |
|
|
47 |
QString AfActivation::name() const
|
|
48 |
{
|
|
49 |
return d_ptr->name();
|
|
50 |
}
|