serviceproviders/sapi_logging/loggingservice/inc/loggingcallbackslot.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:06:03 +0300
branchRCL_3
changeset 44 0b68a1b0c15e
parent 5 989d2f495d90
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Includes call back slot methods.
*
*/

#ifndef LOGGINGCALLBACKSLOT_H_
#define LOGGINGCALLBACKSLOT_H_


/**
* forward declarations
*/
class CLogAsyncService ;
class CBase ;

class CCallbackSlot : public CBase
    {
    public:

        /**
        * NewL: Two phased construction
        */

        IMPORT_C static CCallbackSlot *NewL() ;

        /**
        * NewLC: Creates an instance of CLogSyncServiceClass
        * Two Phased constructor
        * returns newly allocated object.
        */

        static CCallbackSlot* NewLC() ;

        /**
        * Default Destructor
        */

        ~CCallbackSlot() ;

        /**
        * Get the transid.
        */

        inline TUint TransactionId()
            {
            return iTransId ;
            }

        /**
        * set active object
        */

        inline void SetActiveObj(CLogAsyncService * aActive)
            {
            iActive = aActive ;
            }

        /**
        * set the id
        */

        inline void SetUid(TUint aTransId)
            {
            iTransId = aTransId;
            }

        /**
        * get the id
        */

        inline TUint getUid()
            {
            return iTransId;
            }

        /**
        * get active object
        */

        inline CLogAsyncService * GetActiveObj()
            {
            return iActive  ;
            }

    private:

        TUint iTransId ;
        CLogAsyncService * iActive ;
    };

#endif