javauis/amms_akn/src_tuner/native/inc/cammstunerpresetshandler.h
branchRCL_3
changeset 83 26b2b12093af
parent 19 04becd199f91
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
       
     1 /*
       
     2 * Copyright (c) 2005 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:  This class handles presets central repository usage.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CAMMSTUNERPRESETSHANDLER_H
       
    21 #define CAMMSTUNERPRESETSHANDLER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include    <e32base.h>
       
    25 #include    <centralrepository.h>
       
    26 
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class TAMMSTunerPreset;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 /**
       
    33 * This class handles presets central repository usage.
       
    34 *
       
    35 *  @lib ?library
       
    36 *  @since ?Series60_version
       
    37 */
       
    38 NONSHARABLE_CLASS(CAMMSTunerPresetsHandler) : public CBase
       
    39 {
       
    40 public:  // Constructors and destructor
       
    41 
       
    42     /**
       
    43     * Two-phased constructor.
       
    44     */
       
    45     static CAMMSTunerPresetsHandler* NewL();
       
    46 
       
    47     /**
       
    48     * Destructor.
       
    49     */
       
    50     virtual ~CAMMSTunerPresetsHandler();
       
    51 
       
    52 public: // New functions
       
    53 
       
    54     /**
       
    55     * Gets presets from central repository
       
    56     * @param aPreset - presets index
       
    57     * @param aTunerPreset
       
    58     */
       
    59     void GetPresetL(TInt aPreset, TAMMSTunerPreset &aTunerPreset);
       
    60 
       
    61     /**
       
    62     * Save presets to central repository
       
    63     * @param aPreset - presets index
       
    64     * @param aTunerPreset
       
    65     */
       
    66     void SavePresetL(TInt aPreset, TAMMSTunerPreset aTunerPreset);
       
    67 
       
    68 private:
       
    69 
       
    70     /**
       
    71     * C++ default constructor.
       
    72     */
       
    73     CAMMSTunerPresetsHandler();
       
    74 
       
    75     /**
       
    76     * By default Symbian 2nd phase constructor is private.
       
    77     */
       
    78     void ConstructL();
       
    79 
       
    80     // Prohibit copy constructor if not deriving from CBase.
       
    81     // CAMMSTunerPresetsHandler( const CAMMSTunerPresetsHandler& );
       
    82     // Prohibit assigment operator if not deriving from CBase.
       
    83     // CAMMSTunerPresetsHandler& operator=( const CAMMSTunerPresetsHandler& );
       
    84 
       
    85 
       
    86 private:    // Data
       
    87 
       
    88     CRepository* iCentralRepository;
       
    89 
       
    90 
       
    91 };
       
    92 
       
    93 #endif // CAMMSTUNERPRESETSHANDLER_H
       
    94 
       
    95 // End of File