remotemgmt_plat/syncml_ds_error_reporting_api/tsrc/SyncStatusSpy/src/SyncStatusSpySettingItemListSettings.cpp
branchRCL_3
changeset 62 19bba8228ff0
parent 13 06f47423ecee
equal deleted inserted replaced
61:b183ec05bd8c 62:19bba8228ff0
       
     1 /*
       
     2 * Copyright (c) 2009 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19  *	Generated helper class which manages the settings contained 
       
    20  *	in 'SyncStatusSpySettingItemList'.  Each CAknSettingItem maintains
       
    21  *	a reference to data in this class so that changes in the setting
       
    22  *	item list can be synchronized with this storage.
       
    23  */
       
    24  
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <stringloader.h>
       
    28 #include <barsread.h>
       
    29 #include <SyncStatusSpy.rsg>
       
    30 #include "SyncStatusSpySettingItemListSettings.h"
       
    31 
       
    32 
       
    33 #include "ErrorCodeNotifier.h"
       
    34 #include "SyncTypeNotifier.h"
       
    35 #include "ProfileIdNotifier.h"
       
    36 #include "SyncInitiationNotifier.h"
       
    37 
       
    38 /**
       
    39  * C/C++ constructor for settings data, cannot throw
       
    40  */
       
    41 CSyncStatusSpySettingItemListSettings::CSyncStatusSpySettingItemListSettings()
       
    42 	{
       
    43 	}
       
    44 
       
    45 /**
       
    46  * Two-phase constructor for settings data
       
    47  */
       
    48 CSyncStatusSpySettingItemListSettings* CSyncStatusSpySettingItemListSettings::NewL()
       
    49 	{
       
    50 	CSyncStatusSpySettingItemListSettings* data = new( ELeave ) CSyncStatusSpySettingItemListSettings;
       
    51 	CleanupStack::PushL( data );
       
    52 	data->ConstructL();
       
    53 	CleanupStack::Pop( data );
       
    54 	return data;
       
    55 	}
       
    56 
       
    57 CSyncStatusSpySettingItemListSettings::~CSyncStatusSpySettingItemListSettings()
       
    58 	{
       
    59 	delete iErrorCodeNotifier;
       
    60 	delete iProfileIdNotifier;
       
    61 	delete iSyncTypeNotifier;
       
    62 	delete iSyncInitiationNotifier;
       
    63 	}
       
    64 
       
    65 /**
       
    66  *	Second phase for initializing settings data
       
    67  */
       
    68 void CSyncStatusSpySettingItemListSettings::ConstructL()
       
    69 	{
       
    70 
       
    71 	SetIntegerEditor1( 0 );
       
    72 	SetIntegerEditor2( 0 );
       
    73 	SetEnumeratedTextPopup2( 0 );
       
    74 	SetEnumeratedTextPopup1( 0 );
       
    75 
       
    76 
       
    77 	TRAP_IGNORE( iErrorCodeNotifier = CErrorCodeNotifier::NewL() );
       
    78 	TRAP_IGNORE( iProfileIdNotifier = CProfileIdNotifier::NewL() );
       
    79 	TRAP_IGNORE( iSyncTypeNotifier = CSyncTypeNotifier::NewL() );
       
    80 	TRAP_IGNORE( iSyncInitiationNotifier = CSyncInitiationNotifier::NewL() );
       
    81 	
       
    82 	}
       
    83 	
       
    84 
       
    85 TInt& CSyncStatusSpySettingItemListSettings::IntegerEditor1()
       
    86 	{
       
    87 	return iIntegerEditor1;
       
    88 	}
       
    89 
       
    90 void CSyncStatusSpySettingItemListSettings::SetIntegerEditor1(const TInt& aValue)
       
    91 	{
       
    92 	iIntegerEditor1 = aValue;
       
    93 	}
       
    94 
       
    95 TInt& CSyncStatusSpySettingItemListSettings::IntegerEditor2()
       
    96 	{
       
    97 	return iIntegerEditor2;
       
    98 	}
       
    99 
       
   100 void CSyncStatusSpySettingItemListSettings::SetIntegerEditor2(const TInt& aValue)
       
   101 	{
       
   102 	iIntegerEditor2 = aValue;
       
   103 	}
       
   104 
       
   105 TInt& CSyncStatusSpySettingItemListSettings::EnumeratedTextPopup2()
       
   106 	{
       
   107 	return iEnumeratedTextPopup2;
       
   108 	}
       
   109 
       
   110 void CSyncStatusSpySettingItemListSettings::SetEnumeratedTextPopup2(const TInt& aValue)
       
   111 	{
       
   112 	iEnumeratedTextPopup2 = aValue;
       
   113 	}
       
   114 
       
   115 TInt& CSyncStatusSpySettingItemListSettings::EnumeratedTextPopup1()
       
   116 	{
       
   117 	return iEnumeratedTextPopup1;
       
   118 	}
       
   119 
       
   120 void CSyncStatusSpySettingItemListSettings::SetEnumeratedTextPopup1(const TInt& aValue)
       
   121 	{
       
   122 	iEnumeratedTextPopup1 = aValue;
       
   123 	}
       
   124