diff -r 516a867811c3 -r d3981f4fe6a4 deviceupdatesui/devicemanagementnotifiersplugin/syncmlnotifierprivate.cpp --- a/deviceupdatesui/devicemanagementnotifiersplugin/syncmlnotifierprivate.cpp Thu May 27 12:45:33 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,162 +0,0 @@ -/* -* 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 -#include -#include -#include -#include "nsmlconstantdefs.h" -#include "SyncMLNotifierParams.h" -#include "syncmlnotifierprivate.h" - - - -syncmlnotifierprivate::syncmlnotifierprivate() -{ -} - -void syncmlnotifierprivate::setstatus(TInt value) -{ - - qDebug("setstatus"); - - - - enum TSyncmlHbNotifierKeys - { - - EHbSOSNotifierKeyStatus = 11, // status set will complete the client subscribe - EHbSOSNotifierKeyStatusReturn = 12, // Return the content of actual status value accepted from UI - - EHbDMSyncNotifierKeyStatus = 13, - EHbDMSyncNotifierKeyStatusReturn = 14 - }; - - TInt err; - RProperty intProperty; - - if(iNotifierorigin== EHbSOSNotifierKeyStatus) - { - TUid uid = {0x101F99FB}; - err = intProperty.Attach(uid , EHbSOSNotifierKeyStatus, EOwnerThread); - if(err == KErrNone) - { - qDebug("EHbSOSNotifierKeyStatus entered no error"); - intProperty.Set(value); - RProperty::Set(uid, EHbSOSNotifierKeyStatusReturn, value); - qDebug("Set status of return value"); - qDebug()< serverdisplayname; - - RSyncMLSession syncSession; - - syncSession.OpenL(); - CleanupClosePushL( syncSession ); - - RSyncMLDevManProfile syncProfile; - syncProfile.OpenL( syncSession, profileid, ESmlOpenRead ); - CleanupClosePushL( syncProfile ); - - serverdisplayname= syncProfile.DisplayName(); - - - //convert TBuf serverName to QString - QString qString((QChar*)serverdisplayname.Ptr(),serverdisplayname.Length()); - servername = qString; - - - - syncProfile.Close(); - CleanupStack::Pop( &syncProfile ); - - syncSession.Close(); - CleanupStack::Pop( &syncSession ); -} - - -TInt syncmlnotifierprivate::serverinittype(TInt uimode) - { - - - TInt SanSupport = 0; - - CRepository* centrep = NULL; - TRAPD( err, centrep = CRepository::NewL( KCRUidDeviceManagementInternalKeys) ); - User::LeaveIfError( err ); - centrep->Get( KDevManSANUIBitVariation, SanSupport ); - delete centrep; - - //if SAN is specified then silent operation - - if(( SanSupport == 1 )) - { - if( uimode > ESANUserInteractive && uimode < ESANNotSpecified ) - { - uimode = ESANNotSpecified; - } - - if( uimode == ESANNotSpecified || uimode == ESANUserInteractive) - { - return ESANUserInteractive; - } - if( uimode == ESANUserInformative) - { - return ESANUserInformative; - } - } - - return ESANSilent; - - - } - -void syncmlnotifierprivate::setnotifierorigin(TInt notifierorig) - { - iNotifierorigin = notifierorig; - } -