1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __CMSVTECHNOLOGYTYPEDEFAULTMTMSETTINGS_H__
17 #define __CMSVTECHNOLOGYTYPEDEFAULTMTMSETTINGS_H__
27 Stores default MTM settings for a technology type to the Central Repository.
32 class CMsvTechnologyTypeDefaultMtmSettings : public CBase
35 struct TMsvTechnologyTypeDefaultMtmInfo
37 TUid iTechnologyTypeUid;
42 IMPORT_C static CMsvTechnologyTypeDefaultMtmSettings* NewL( RFs& aFs );
43 IMPORT_C ~CMsvTechnologyTypeDefaultMtmSettings( );
45 IMPORT_C TInt DefaultMtm( TUid aTechnologyTypeUid, TUid& aMtmUid ) const;
46 IMPORT_C void SetDefaultMtmL( TUid aTechnologyTypeUid, TUid aMtmUid );
47 IMPORT_C TInt RemoveDefaultMtm( TUid aTechnologyTypeUid );
49 // Stores and Restores data in the central repository
50 IMPORT_C void LoadSettingsL( );
51 IMPORT_C void SaveSettingsL( );
54 CMsvTechnologyTypeDefaultMtmSettings( RFs& aFs );
56 void CheckIfMtmIsPartOfTechnologyTypeGroupL( const TUid aTechnologyTypeUid,
57 const TUid aMtmUid, const TUid aMtmTypeUid ) const;
58 TInt FindDefaultMtm( const TUid aTechnologyTypeUid,
59 TMsvTechnologyTypeDefaultMtmInfo& aTechnologyTypeDefaultMtmInfo ) const;
62 CRepository* iRepository;
63 RArray<TMsvTechnologyTypeDefaultMtmInfo> iTechnologyTypeDefaultMtmArray;
64 RArray<TUid> iRemovedTechnologyTypes;
67 #endif //__CMSVTECHNOLOGYTYPEDEFAULTMTMSETTINGS_H__