serviceproviders/sapi_logging/loggingservice/inc/loggingcallbackslot.h
changeset 5 989d2f495d90
equal deleted inserted replaced
1:a36b1e19a461 5:989d2f495d90
       
     1 /*
       
     2 * Copyright (c) 2006-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 the License "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:  Includes call back slot methods.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LOGGINGCALLBACKSLOT_H_
       
    19 #define LOGGINGCALLBACKSLOT_H_
       
    20 
       
    21 
       
    22 /**
       
    23 * forward declarations
       
    24 */
       
    25 class CLogAsyncService ;
       
    26 class CBase ;
       
    27 
       
    28 class CCallbackSlot : public CBase
       
    29     {
       
    30     public:
       
    31 
       
    32         /**
       
    33         * NewL: Two phased construction
       
    34         */
       
    35 
       
    36         IMPORT_C static CCallbackSlot *NewL() ;
       
    37 
       
    38         /**
       
    39         * NewLC: Creates an instance of CLogSyncServiceClass
       
    40         * Two Phased constructor
       
    41         * returns newly allocated object.
       
    42         */
       
    43 
       
    44         static CCallbackSlot* NewLC() ;
       
    45 
       
    46         /**
       
    47         * Default Destructor
       
    48         */
       
    49 
       
    50         ~CCallbackSlot() ;
       
    51 
       
    52         /**
       
    53         * Get the transid.
       
    54         */
       
    55 
       
    56         inline TUint TransactionId()
       
    57             {
       
    58             return iTransId ;
       
    59             }
       
    60 
       
    61         /**
       
    62         * set active object
       
    63         */
       
    64 
       
    65         inline void SetActiveObj(CLogAsyncService * aActive)
       
    66             {
       
    67             iActive = aActive ;
       
    68             }
       
    69 
       
    70         /**
       
    71         * set the id
       
    72         */
       
    73 
       
    74         inline void SetUid(TUint aTransId)
       
    75             {
       
    76             iTransId = aTransId;
       
    77             }
       
    78 
       
    79         /**
       
    80         * get the id
       
    81         */
       
    82 
       
    83         inline TUint getUid()
       
    84             {
       
    85             return iTransId;
       
    86             }
       
    87 
       
    88         /**
       
    89         * get active object
       
    90         */
       
    91 
       
    92         inline CLogAsyncService * GetActiveObj()
       
    93             {
       
    94             return iActive  ;
       
    95             }
       
    96 
       
    97     private:
       
    98 
       
    99         TUint iTransId ;
       
   100         CLogAsyncService * iActive ;
       
   101     };
       
   102 
       
   103 #endif