meetingrequest/mrguicommon/inc/cesmralarm.h
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 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:  ESMR alarm implementation
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRALARM_H
       
    20 #define CESMRALARM_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <barsread.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CCoeEnv;
       
    27 
       
    28 // CLASS DECLARATIONS
       
    29 NONSHARABLE_CLASS( CESMRAlarm ): public CBase
       
    30     {
       
    31 public:
       
    32     /**
       
    33      * Constructor
       
    34      */
       
    35     IMPORT_C CESMRAlarm();
       
    36     
       
    37     /**
       
    38      * Destructor
       
    39      */
       
    40     IMPORT_C ~CESMRAlarm();
       
    41 
       
    42 public:
       
    43     /**
       
    44      * Loads alarm valus from resources
       
    45      */
       
    46     IMPORT_C void ConstructFromResourceL( TResourceReader& aReader );
       
    47     
       
    48     /**
       
    49      * Loads iText from resources
       
    50      */
       
    51     IMPORT_C void LoadTextL( CCoeEnv* aCoeEnv );
       
    52     
       
    53     /**
       
    54      * Returns relative alarm time in minutes
       
    55      * 
       
    56      * @return relative alarm time
       
    57      */
       
    58     IMPORT_C TTimeIntervalMinutes RelativeTimeInMinutes();
       
    59     
       
    60     /**
       
    61      * Returns alarm text
       
    62      * 
       
    63      * @return alarm text
       
    64      */
       
    65     IMPORT_C HBufC* Text();
       
    66     
       
    67     /**
       
    68      * Returns alarm id
       
    69      * 
       
    70      * @return alarm id
       
    71      */
       
    72     IMPORT_C TInt Id();
       
    73     
       
    74     /**
       
    75      * Returns relative alarm time
       
    76      * 
       
    77      * @returns relative alarm time
       
    78      */
       
    79     IMPORT_C TInt Relative();
       
    80 
       
    81 private:
       
    82     /**
       
    83      * Alarm id
       
    84      */
       
    85     TInt iId;
       
    86     
       
    87     /**
       
    88      * Alarm value
       
    89      */
       
    90     TInt iValue;
       
    91     
       
    92     /**
       
    93      * Relative alarm value
       
    94      */
       
    95     TInt iRelative;
       
    96     
       
    97     /**
       
    98      * Alarm text id
       
    99      */
       
   100     TInt iTxtLink;
       
   101     
       
   102     /**
       
   103      * Own: Alarm text
       
   104      */
       
   105     HBufC* iText;
       
   106     };
       
   107 
       
   108 #endif  // CESMRALARM_H
       
   109