voipplugins/dhcppositionprovider/inc/dhcppsysingletonhandler.h
branchRCL_3
changeset 21 f742655b05bf
parent 20 65a3ef1d5bd0
child 22 d38647835c2e
equal deleted inserted replaced
20:65a3ef1d5bd0 21:f742655b05bf
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DHCPPSYSINGLETONHANDLER_H
       
    20 #define DHCPPSYSINGLETONHANDLER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CDhcpPsyRequester;
       
    25 
       
    26 // Implements the singleton handler for the dhcpositionprovider module
       
    27 class CDhcpPsySingletonHandler : public CBase
       
    28     {
       
    29     public:  // Constructors and destructor
       
    30 
       
    31         /**
       
    32         * Singleton can be only created through GetInstanceL.
       
    33         */
       
    34         static CDhcpPsySingletonHandler* GetInstanceL();
       
    35 
       
    36         /**
       
    37         * Destructor
       
    38         */
       
    39         virtual ~CDhcpPsySingletonHandler ();
       
    40 
       
    41         /**
       
    42          * Release the reference to singleton handler. If there is no ojbect
       
    43          * has the reference of this object, it will delete itself.
       
    44          */
       
    45          void ReleaseInstance();
       
    46 
       
    47     public:
       
    48 
       
    49         /**
       
    50          * Requester for positionar usage.
       
    51          *
       
    52          */
       
    53          CDhcpPsyRequester* Requester ();
       
    54 
       
    55     private:
       
    56 
       
    57         /**
       
    58         * Second - phase constructor
       
    59         */
       
    60         void ConstructL ();
       
    61 
       
    62     private:
       
    63         // Reference count
       
    64         TInt iRefCount;
       
    65 
       
    66         //
       
    67         CDhcpPsyRequester*  iPsyRequester;
       
    68 
       
    69     };
       
    70 
       
    71 #endif /* DHCPPSYSINGLETONHANDLER_H */