wvuing/wvuiprocess/Inc/CCASingletonPC.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Singleton base class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCASINGLETONPC_H
       
    21 #define CCASINGLETONPC_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // FUNCTION PROTOTYPES
       
    27 /**
       
    28 * Create singleton instance.
       
    29 *
       
    30 * @return pointer to singleton instance
       
    31 */
       
    32 TAny* ConstructSingletonInstanceL();
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  Singleton base class.
       
    38 *
       
    39 *  @lib N/A
       
    40 *
       
    41 */
       
    42 NONSHARABLE_CLASS( CCASingletonPC ) : public CBase
       
    43     {
       
    44 public:  // Constructors and destructor
       
    45 
       
    46     /**
       
    47     * Destructor.
       
    48     */
       
    49     virtual ~CCASingletonPC();
       
    50 
       
    51 protected:
       
    52 
       
    53     /**
       
    54     * C++ default constructor.
       
    55     */
       
    56     CCASingletonPC();
       
    57 
       
    58 protected: // New functions
       
    59 
       
    60     /**
       
    61     * Return instance.
       
    62     *
       
    63     * @return pointer to singleton instance
       
    64     */
       
    65     static TAny* BaseInstanceL();
       
    66 
       
    67     };
       
    68 
       
    69 #endif      // CCASINGLETONPC_H
       
    70 
       
    71 // End of File