videditor/VideoEditorCommon/inc/VeiSettings.h
branchRCL_3
changeset 3 e0b5df5c0969
parent 0 951a5db380a0
child 7 4c409de21d23
equal deleted inserted replaced
0:951a5db380a0 3:e0b5df5c0969
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __VEISETTINGS_H__
       
    21 #define __VEISETTINGS_H__
       
    22 
       
    23 #include <s32strm.h>
       
    24 #include <CAknMemorySelectionDialog.h>
       
    25 
       
    26 // Max size of serialized settings object:
       
    27 //	DefaultSnapshotName	256 bytes
       
    28 //	DefaultVideoName	256 bytes
       
    29 //	MemoryInUse			8 bit
       
    30 //	SaveQuality			8 bit
       
    31 const TInt KveiSettingsMaxSerializedSizeInBytes = 520;
       
    32 
       
    33 NONSHARABLE_CLASS( TVeiSettings )
       
    34 	{
       
    35     public:     // Enumerations
       
    36 
       
    37         enum TSaveQuality 
       
    38             {
       
    39             EAuto = 0,
       
    40             EMmsCompatible,
       
    41             EMedium,
       
    42             EBest
       
    43             };
       
    44 
       
    45 	public:
       
    46 		/** 
       
    47 		 * Getter/setter for default snapshot name, non-const
       
    48 		 */
       
    49 		IMPORT_C TDes& DefaultSnapshotName();
       
    50 	
       
    51 		/**
       
    52 		 * Getter for default snapshot name, const
       
    53 		 */
       
    54 		IMPORT_C TPtrC DefaultSnapshotName() const;
       
    55 
       
    56 		/**
       
    57 		 * Getter/setter for default video name, non-const
       
    58 		 */
       
    59 		IMPORT_C TDes& DefaultVideoName();
       
    60 
       
    61 		/**
       
    62 		 * Getter for default video name, const
       
    63 		 */
       
    64 		IMPORT_C TPtrC DefaultVideoName() const;
       
    65 
       
    66 		/**
       
    67 		 * Getter/setter for used memory, non-const
       
    68 		 */
       
    69 		IMPORT_C CAknMemorySelectionDialog::TMemory& MemoryInUse();
       
    70 
       
    71 		/**
       
    72 		 * Getter for used memory, const
       
    73 		 */
       
    74 		IMPORT_C const CAknMemorySelectionDialog::TMemory& MemoryInUse() const;
       
    75 
       
    76         /**
       
    77          * Getter for save quality, const
       
    78          */
       
    79         IMPORT_C TInt& SaveQuality();
       
    80 
       
    81         /**
       
    82          * Getter for save quality, const
       
    83          */
       
    84         IMPORT_C TInt SaveQuality() const;
       
    85 
       
    86 		IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
       
    87 
       
    88 		IMPORT_C void InternalizeL(RReadStream& aStream);
       
    89 
       
    90 #ifdef SETTINGS_TO_CENREP
       
    91 	public:
       
    92         /**
       
    93          * Load values from Central Repository
       
    94          */
       
    95 		void LoadL();
       
    96 
       
    97         /**
       
    98          * Save values to Central Repository
       
    99          */
       
   100 		void SaveL() const;
       
   101 #endif
       
   102 
       
   103 	private:  // Member data.
       
   104 		/**
       
   105 		 * Default snapshot name.
       
   106 		 */
       
   107 		TBuf<128>	iDefaultSnapshotName;
       
   108 	
       
   109 		/**
       
   110 		 * Default video name.
       
   111 		 */
       
   112 		TBuf<128>	iDefaultVideoName;
       
   113 
       
   114 		/**
       
   115 		 * Memory in use.
       
   116 		 */
       
   117 		CAknMemorySelectionDialog::TMemory iMemoryInUse;
       
   118 
       
   119         /**
       
   120          * Save quality.
       
   121          */
       
   122         TSaveQuality        iSaveQuality;
       
   123 
       
   124 };
       
   125 
       
   126 #endif