os/mm/mmlibs/mmfw/tsrc/mmvalidationsuite/mmvalidationsuiteapp/inc/SettingsManager.h
First public contribution.
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.
14 // Part of the MVS Application for TechView
17 #ifndef SETTINGS_MANAGER_H
18 #define SETTINGS_MANAGER_H
25 class CMVSConfigAudioFormatDialog;
26 class CMVSConfigVideoFormatDialog;
28 class CSettingsManager :public CBase
33 static CSettingsManager* NewL();
35 void MakeSeedIndexL();
36 //gets general settings from the file store
37 void ReadGeneralSettingsL(CMVSAppUi* aAppUI);
38 void WriteGeneralSettingsL(CMVSAppUi* aAppUI);
39 void WriteAudioDataL(CMVSConfigAudioFormatDialog* apAudioFormat,
41 void WriteVideoDataL(CMVSConfigVideoFormatDialog* aVideoFormatDlg,
43 TInt ReadAudioDataL(CMVSConfigAudioFormatDialog* apAudioFormat,
45 TBool ReadVideoDataL(CMVSConfigVideoFormatDialog* aVideoFormatDlg,
49 TBool OpenStore2ReadLC();
50 void OpenStore2WriteLC();
52 void ReadControllerTableL(RReadStream& aStream);
53 TBool IsControllerAvailableL(const TUid& aUid,
55 void WriteIndexL(RWriteStream& aStream,
57 TStreamId& aStreamId);
64 TStreamId iGenSettingsId;
65 TStreamId iRootId; //for index writing
66 //no. of controllers currently available in storage
69 RArray<TStreamId> iArrStreamId;
72 #endif SETTINGS_MANAGER_H