deviceupdatesui/deviceupdatesplugin/inc/deviceupdatesdata.h
branchRCL_3
changeset 57 6757f1e2efd2
equal deleted inserted replaced
55:c4687ff85147 57:6757f1e2efd2
       
     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:  Device updates data for control panel
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef	DEVICEUPDATESDATA_H_
       
    19 #define	DEVICEUPDATESDATA_H_
       
    20 
       
    21 #include <QtCore/QProcess>
       
    22 #include <cpsettingformentryitemdata.h>
       
    23 
       
    24 _LIT( KDMUIProcess, "\\deviceupdates.exe" );
       
    25 _LIT( KDMUIName, "deviceupdates" );
       
    26 
       
    27 
       
    28 const TUid KUidSmlSyncApp = { 0x101F6DE5 };
       
    29 const TUint32 KNsmlDmUILaunch = 0x00000009;
       
    30 
       
    31 
       
    32 class DeviceUpdateData : public CpSettingFormEntryItemData
       
    33 {
       
    34     Q_OBJECT
       
    35 public:
       
    36     explicit DeviceUpdateData(CpItemDataHelper &itemDataHelper,
       
    37 												const QString &text = QString(),
       
    38 												const QString &description = QString(),
       
    39 												const HbIcon &icon = HbIcon(),
       
    40 												const HbDataFormModelItem *parent = 0);
       
    41     void LaunchDeviceUpdatesUi();
       
    42     void CloseDeviceUpdatesUi();
       
    43     virtual ~DeviceUpdateData();
       
    44 public slots:
       
    45 	void onLaunchView();
       
    46 private:
       
    47 	virtual CpBaseSettingView *createSettingView() const;
       
    48 	
       
    49 private:
       
    50 		QProcess *mproc;
       
    51 
       
    52 };
       
    53 #endif//	DEVICEUPDATESVIEW_H_