datacommsserver/esockserver/test/te_mecunittest/inc/mecunittestrefcountowner.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 // mecunittestrefcountowner.h
       
    16 //
       
    17 
       
    18 /**
       
    19 @file
       
    20 */
       
    21 
       
    22 #ifndef MECUNITTESTREFCOUNTOWNER_H
       
    23 #define MECUNITTESTREFCOUNTOWNER_H
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 class CMecUnitTestRefCountOwnerBase : public CBase
       
    28     {
       
    29 public:
       
    30     void Close();
       
    31     void Open();
       
    32 
       
    33 protected:
       
    34     CMecUnitTestRefCountOwnerBase(const TAny* aPtr);
       
    35     ~CMecUnitTestRefCountOwnerBase();
       
    36 
       
    37     virtual void DeletePtr() = 0;
       
    38 
       
    39 protected:
       
    40     TAny*       iPtr;
       
    41 
       
    42 private:
       
    43     TInt        iRefCount;
       
    44     };
       
    45 
       
    46 typedef CMecUnitTestRefCountOwnerBase CRefCountOwnerBase;
       
    47 
       
    48 #endif
       
    49 // MECUNITTESTREFCOUNTOWNER_H
       
    50