bluetoothengine/btaudioman/inc/basrvactivenotifier.h
changeset 0 f63038272f30
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  The base active object declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_BASRVACTIVENOTIFIER_H
       
    20 #define C_BASRVACTIVENOTIFIER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <btnotif.h>
       
    25 #include "basrvactive.h"
       
    26 
       
    27 class TBTDevAddr;
       
    28 
       
    29 /**
       
    30  * An abstract Active Object.
       
    31  *
       
    32  * This class provides TRequestStatus for an async operation but it doesn't know the
       
    33  * detail of the request. CBasrvActive could be used to implement timers, P&S subscribes
       
    34  * that are "simple" enough operations.
       
    35  *
       
    36  * @since S60 v3.1
       
    37  */
       
    38 class CBasrvActiveNotifier : public CBasrvActive
       
    39     {
       
    40 public:
       
    41     static CBasrvActiveNotifier* NewL(MBasrvActiveObserver& aObserver, 
       
    42         CActive::TPriority aPriority, TInt aRequestId, const TBTDevAddr& aAddr, TBTGenericInfoNoteType aNote);
       
    43 
       
    44     virtual ~CBasrvActiveNotifier();
       
    45 
       
    46 private:
       
    47     void GoActive();
       
    48 
       
    49 private:
       
    50     void ConstructL();
       
    51 
       
    52     void DoCancel();
       
    53 
       
    54 protected:
       
    55     CBasrvActiveNotifier(MBasrvActiveObserver& aObserver, 
       
    56         CActive::TPriority aPriority, TInt aRequestId, const TBTDevAddr& iAddr, TBTGenericInfoNoteType aNote);
       
    57 
       
    58     MBasrvActiveObserver& Observer();
       
    59 
       
    60 private:
       
    61     RNotifier iNotifier;
       
    62     TBTGenericInfoNotiferParamsPckg iPckg;
       
    63     TBuf8<sizeof(TInt)> iNoResult;
       
    64     };
       
    65 
       
    66 #endif  // C_BASRVACTIVE_H