phoneapp/phonemediatorcenter/tsrc/ut_mediatorfactory/Src/globals.h
changeset 77 2be0b271d017
equal deleted inserted replaced
72:c76a0b1755b9 77:2be0b271d017
       
     1 /*
       
     2 * Copyright (c) 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:
       
    15 *
       
    16 */
       
    17 #ifndef GLOBALS_H
       
    18 #define GLOBALS_H
       
    19 
       
    20 #include <e32std.h>
       
    21 #include <MediatorCommandResponder.h>
       
    22 
       
    23 class Singleton : public CBase
       
    24 	{
       
    25 	public:
       
    26 		static Singleton* Instance();
       
    27 		~Singleton();
       
    28 
       
    29 	protected:
       
    30 		Singleton();
       
    31 		Singleton(const Singleton&);
       
    32 		Singleton& operator=(const Singleton&);
       
    33 
       
    34 	private:
       
    35 		
       
    36 	public:
       
    37         static Singleton* pinstance;
       
    38         TBool iLeave;
       
    39         TBool iCreateMessageLeave;
       
    40         TInt iMessageObject;
       
    41         TInt iSenderObject;
       
    42 	};
       
    43     
       
    44 #endif      // GLOBALS_H
       
    45     
       
    46 // End of File