phoneplugins/infowidgetplugin/infowidgetproviderinstaller/infowidgetproviderinstaller.cpp
equal
deleted
inserted
replaced
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: Infowidgetplugin service manager |
|
15 * registration handler |
|
16 * |
|
17 */ |
|
18 |
|
19 #include <qservicemanager.h> |
|
20 #include <QCoreApplication> |
|
21 #include <QFile> |
|
22 |
|
23 QTM_USE_NAMESPACE |
|
24 |
|
25 const QString xml = "z:/private/20022F35/import/widgetregistry/20029F28/infowidgetprovider.xml"; |
|
26 |
|
27 int main(int argc, char *argv[]) |
|
28 { |
|
29 QCoreApplication app(argc, argv); |
|
30 |
|
31 QServiceManager s; |
|
32 |
|
33 if (QFile::exists(xml)) { |
|
34 s.addService(xml); |
|
35 } else { |
|
36 s.removeService("infowidgetprovider"); |
|
37 } |
|
38 } |
|