meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmrviewersyncfield.h
changeset 0 8466d47a6819
child 16 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-2009 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:  Syncronization field
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CESMRVIEWERSYNCFIELD_H__
       
    20 #define __CESMRVIEWERSYNCFIELD_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include "cesmrfield.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CMRImage;
       
    27 class CMRLabel;
       
    28 
       
    29 
       
    30 /**
       
    31  * This class shows state of syncronization.
       
    32  */
       
    33 NONSHARABLE_CLASS( CESMRViewerSyncField ) : public CESMRField
       
    34     {
       
    35 public:
       
    36     /**
       
    37      * Creates new CESMRViewerSyncField object. Ownership
       
    38      * is transferred to caller.
       
    39      * @return Pointer to created object,
       
    40      */
       
    41     static CESMRViewerSyncField* NewL();
       
    42 
       
    43     /**
       
    44      * C++ destructor
       
    45      */
       
    46     ~CESMRViewerSyncField();
       
    47     
       
    48 public: // From CESMRField
       
    49     void InternalizeL( MESMRCalEntry& aEntry );
       
    50     void InitializeL();
       
    51     void SetOutlineFocusL( TBool aFocus );
       
    52     
       
    53 public: // From CCoeControl
       
    54     void SizeChanged();
       
    55     TInt CountComponentControls() const;
       
    56     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    57     
       
    58 private: // Implementation
       
    59     CESMRViewerSyncField();
       
    60     void ConstructL();
       
    61     
       
    62 private:
       
    63     // Owned: Field icon
       
    64     CMRImage* iIcon;
       
    65     // Owned: Field text label
       
    66     CMRLabel* iLabel;
       
    67     };
       
    68 
       
    69 #endif //__CESMRVIEWERSYNCFIELD_H__