|
1 /* |
|
2 * Copyright (c) 2010 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: Test installer that uses Usif::RSoftwareInstall API. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef ACTIVERUNNER_H |
|
19 #define ACTIVERUNNER_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <usif/usifcommon.h> |
|
23 |
|
24 class ActiveRunnerPrivate; |
|
25 |
|
26 |
|
27 class ActiveRunner : public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: // constructor and destructor |
|
32 ActiveRunner(bool useSif); |
|
33 ~ActiveRunner(); |
|
34 |
|
35 signals: |
|
36 void opCompleted(); |
|
37 void opFailed(int error); |
|
38 |
|
39 public: // new functions |
|
40 void install(const QString &fileName, bool silent, bool openfile, bool ocsp); |
|
41 void remove(const Usif::TComponentId& aComponentId, bool silent); |
|
42 void remove(const TUid& aUid, const TDesC8& aMime, bool silent); |
|
43 |
|
44 protected: |
|
45 void handleCompletion(); |
|
46 void handleError(int error); |
|
47 |
|
48 private: // data |
|
49 friend class ActiveRunnerPrivate; |
|
50 ActiveRunnerPrivate *d_ptr; |
|
51 }; |
|
52 |
|
53 #endif // ACTIVERUNNER_H |