mmserv/voipaudioservices/VoIPServer/inc/VoIPServerAO.h
changeset 0 71ca22bcf22a
child 53 eabc8c503852
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2  * Copyright (c) 2007-2008 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:  Definition of active object used for ITC.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef __VOIPSERVERAO_H__
       
    19 #define __VOIPSERVERAO_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 
       
    26 // CLASS DEFINITIONS
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 //  Class Name:  MThreadComObserver
       
    30 //
       
    31 //  A/O observer class
       
    32 // -----------------------------------------------------------------------------
       
    33 class MThreadComObserver
       
    34     {
       
    35 public:
       
    36     virtual void DoHandleCmd(TExcType aExc, TInt aError) = 0;
       
    37     virtual void DoHandleError(TInt aError) = 0;
       
    38     };
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 //  Class Name:  CVoIPServerAO
       
    42 //
       
    43 //  A/O class used for ITC between VoIP server threads.
       
    44 // -----------------------------------------------------------------------------
       
    45 class CVoIPServerAO : public CActive
       
    46     {
       
    47 public:
       
    48 
       
    49     void Request();
       
    50     CVoIPServerAO(MThreadComObserver* aObserver, TThreadId aThreadID);
       
    51 
       
    52 private:
       
    53     void DoCancel();
       
    54     void RunL();
       
    55     TInt RunError(TInt aError);
       
    56 
       
    57     MThreadComObserver* iObserver;
       
    58     TThreadId iID;
       
    59     };
       
    60 
       
    61 #endif // __VOIPSERVERAO_H__
       
    62 
       
    63 // End of file