diff -r 459da34cdb45 -r 83cc6bae1de8 emailservices/nmregister/nmregisterinstaller/nmregisterinstaller.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailservices/nmregister/nmregisterinstaller/nmregisterinstaller.cpp Wed Sep 15 12:09:55 2010 +0300 @@ -0,0 +1,36 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#include +#include +#include + +QTM_USE_NAMESPACE + +int main(int argc, char *argv[]) +{ + QCoreApplication app(argc, argv); + + QServiceManager manager; + + if (QFile::exists("c:/private/2002DD16/import/nmregister.xml")) { + manager.removeService("nmregister"); + manager.addService("c:/private/2002DD16/import/nmregister.xml"); + } else { + manager.removeService("nmregister"); + } +}