hswidgetplugin/fmradiohswidgetplugininstaller/fmradiohswidgetplugininstaller.cpp
changeset 32 189d20c34778
parent 28 075425b8d9a4
child 33 11b6825f0862
equal deleted inserted replaced
28:075425b8d9a4 32:189d20c34778
     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:  Example of home screen widget
       
    15 *
       
    16 */
       
    17 
       
    18 // System includes
       
    19 #include <qservicemanager.h>
       
    20 #include <QCoreApplication>
       
    21 #include <QFile>
       
    22 
       
    23 // User includes
       
    24 #include "radiologger.h"
       
    25 
       
    26 QTM_USE_NAMESPACE
       
    27 
       
    28 const QString KXml = "c:/private/20022F35/import/widgetregistry/2002E6D6/fmradiohswidgetplugin.xml";
       
    29 
       
    30 int main(int argc, char *argv[])
       
    31 {
       
    32     LOG_METHOD;
       
    33     
       
    34     QCoreApplication app(argc, argv);
       
    35 
       
    36     QServiceManager s;
       
    37 
       
    38 	if (QFile::exists(KXml)) {
       
    39 	    LOG_FORMAT( "Add %s service", GETSTRING(KXml) );
       
    40         s.addService(KXml);
       
    41 	} else {
       
    42         LOG("Remove fmradiohswidgetplugin service.");
       
    43 		s.removeService("fmradiohswidgetplugin");
       
    44 	}
       
    45 }