deviceupdatesui/deviceupdatesqtsp/src/DmTelServiceHandler.cpp
author hgs
Tue, 13 Jul 2010 03:51:25 +0530
changeset 46 b9b00b134b0d
parent 33 7464c1e21dae
child 67 fdbfe0a95492
permissions -rw-r--r--
201023
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     1
/*
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     2
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     3
 * All rights reserved.
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     8
 *
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
     9
 * Initial Contributors:
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    11
 *
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    12
 * Contributors:
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    13
 *
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    14
 * Description:
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    15
 *
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    16
 */
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    17
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    18
#include "DmTelServiceHandler.h"
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    19
#include <hbapplication.h>
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    20
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    21
DmTelServiceHandler::DmTelServiceHandler(QObject *parent):
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    22
    XQServiceProvider("com.nokia.services.devicemanager", parent)
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    23
{
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    24
    publishAll();
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    25
}
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    26
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    27
DmTelServiceHandler::~DmTelServiceHandler()
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    28
{
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    29
}
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    30
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    31
void DmTelServiceHandler::showVersionNumber()
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    32
{
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    33
// Create DM UI Process
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    34
RProcess rp;
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    35
TInt err = rp.Create(KDMUIProcess,KNullDesC);
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    36
User::LeaveIfError(err);  
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    37
rp.SetPriority(EPriorityForeground);
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    38
rp.Resume();    // logon OK - start the server
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    39
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    40
// quit the service provider app.
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    41
//QCoreApplication::quit();	
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    42
QCoreApplication::exit(0);		  
7464c1e21dae 201008_internal
hgs
parents:
diff changeset
    43
}