javauis/amms_qt/module/inc/mammscontrolgroup.h
changeset 23 98ccebc37403
equal deleted inserted replaced
21:2a9601315dfc 23:98ccebc37403
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Interface for all control groups.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MAMMSCONTROLGROUP_H
       
    20 #define MAMMSCONTROLGROUP_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 
       
    27 // CLASS DECLARATION
       
    28 /**
       
    29 *
       
    30 *  Interface for all control groups.
       
    31 *
       
    32 *
       
    33 *  @since 3.0
       
    34 */
       
    35 NONSHARABLE_CLASS(MAMMSControlGroup)
       
    36 {
       
    37 protected: // Enumerations
       
    38 
       
    39     enum TCommitMode { EImmediate, EDeferred };
       
    40 
       
    41 public:  // New functions
       
    42     /**
       
    43     * Returns class name that identifies this control group.
       
    44     * @return Control group name.
       
    45     */
       
    46     virtual const TDesC& ClassName() = 0;
       
    47 
       
    48     /**
       
    49      * Sets the mode of the CommitControl.
       
    50      *
       
    51      * @param aMode commit mode
       
    52      */
       
    53     virtual void SetModeL(TCommitMode /*aMode*/) {};
       
    54 
       
    55     /**
       
    56      * Commit all the controls in the group
       
    57      * in immediate mode commits, in deferred mode marks what variables
       
    58      * need to be commited later
       
    59      */
       
    60     virtual void CommitGroupL() {};
       
    61 
       
    62 protected:
       
    63     /**
       
    64     * Protected destructor not allow delete throw this interface.
       
    65     */
       
    66     virtual ~MAMMSControlGroup() {};
       
    67 };
       
    68 #endif // MAMMSCONTROLGROUP_H