|
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 * |
|
15 * Description: |
|
16 * The source file of service utils |
|
17 */ |
|
18 |
|
19 #include "fmserviceutils.h" |
|
20 |
|
21 #include "fmserviceutilsprivate.h" |
|
22 |
|
23 FmServiceUtils::FmServiceUtils( QObject *parent ) : QObject( parent ) |
|
24 { |
|
25 d = new FmServiceUtilsPrivate; |
|
26 } |
|
27 |
|
28 FmServiceUtils::~FmServiceUtils() |
|
29 { |
|
30 delete d; |
|
31 } |
|
32 |
|
33 /*! |
|
34 send files that included in \a filePathList via ShareUi |
|
35 */ |
|
36 void FmServiceUtils::sendFile( const QStringList &filePathList ) |
|
37 { |
|
38 d->sendFile( filePathList ); |
|
39 } |
|
40 |
|
41 /*! |
|
42 call CBaBackupSessionWrapper to close apps, for example, before formant, apps need be closed |
|
43 this is synchronous which will take a while, please call this function in thread |
|
44 */ |
|
45 void FmServiceUtils::closeApps() |
|
46 { |
|
47 d->closeApps(); |
|
48 } |
|
49 |
|
50 /*! |
|
51 call CBaBackupSessionWrapper to restart apps |
|
52 for example, after formant, closed apps need be restarted |
|
53 this is synchronous which will return quickly. |
|
54 */ |
|
55 void FmServiceUtils::restartApps() |
|
56 { |
|
57 d->restartApps(); |
|
58 } |