convergedconnectionhandler/cchserver/inc/cchstartupcounter.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2008 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:  CCchStartupCounter declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CCHSTARTUPCOUNTER_H
       
    20 #define C_CCHSTARTUPCOUNTER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 #include <cchclientserver.h>
       
    26 
       
    27 // CONSTANTS
       
    28 // None
       
    29 
       
    30 // MACROS
       
    31 // None
       
    32 
       
    33 // DATA TYPES
       
    34 // None
       
    35 
       
    36 // FUNCTION PROTOTYPES
       
    37 // None
       
    38 
       
    39 // FORWARD DECLARATIONS
       
    40 class CCCHServerBase;
       
    41 class CRepository;
       
    42 
       
    43 // CLASS DECLARATION
       
    44 
       
    45 /**
       
    46  *  CCchStartupCounter declaration
       
    47  *  Class handles CCH server's startup situation
       
    48  *  @lib cchserver.exe
       
    49  *  @since S60 3.2
       
    50  */
       
    51 NONSHARABLE_CLASS( CCchStartupCounter ) : public CBase
       
    52     {
       
    53     
       
    54 public: // Constructors and destructor
       
    55 
       
    56     /**
       
    57     * Two-phased constructor.
       
    58     */
       
    59     static CCchStartupCounter* NewL( CCCHServerBase& aServer );
       
    60 
       
    61     /**
       
    62      * Destructor.
       
    63      */
       
    64     virtual ~CCchStartupCounter();
       
    65     
       
    66 public: // New functions
       
    67     
       
    68     /**
       
    69      * Startup has occured.
       
    70      * @since S60 3.2
       
    71      */
       
    72     void StartupOccuredL();
       
    73         
       
    74     /**
       
    75      * Reset startup counter cenrep-value.
       
    76      * @since S60 3.2
       
    77      */
       
    78     void ResetStartupCounter();
       
    79     
       
    80 private:
       
    81     
       
    82     /**
       
    83      * Handles startup exceptions.
       
    84      * @since S60 3.2
       
    85      */
       
    86     void HandleStartupExceptionsL();
       
    87     
       
    88 private:
       
    89 
       
    90     /**
       
    91      * C++ default constructor.
       
    92      */
       
    93     CCchStartupCounter( CCCHServerBase& aServer );
       
    94     
       
    95     /**
       
    96      * By default Symbian 2nd phase constructor is private.
       
    97      */
       
    98     void ConstructL();
       
    99     
       
   100 private: // data
       
   101 
       
   102     /**
       
   103      * Server handle
       
   104      */
       
   105     CCCHServerBase& iServer;
       
   106     
       
   107     /**
       
   108      * Startup counter repository
       
   109      */
       
   110     CRepository*    iStartupRepository;
       
   111     };
       
   112 
       
   113 #endif // C_CCHSTARTUPCOUNTER_H
       
   114 
       
   115 // End of file