mmserv/voipaudioservices/VoIPServer/inc/VoIPServer.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 CVoIPAudioServer server class.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef __VOIPAUDIOSERVER_H
       
    19 #define __VOIPAUDIOSERVER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 // FORWARD DECLARATIONS
       
    24 class CVoIPAudioServerSession;
       
    25 class CDelayVoIPServerShutDown;
       
    26 class CVoIPECallEventHandler;
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CVoIPAudioServer class
       
    30 // -----------------------------------------------------------------------------
       
    31 class CVoIPAudioServer : public CServer2
       
    32     {
       
    33 public:
       
    34     static CVoIPAudioServer* NewL();
       
    35     ~CVoIPAudioServer();
       
    36 
       
    37     void AddSession();
       
    38     void DropSession();
       
    39     TInt SessionCount();
       
    40     void SetDnLinkSession(CVoIPAudioServerSession* aSession, TBool aStatus);
       
    41     void SetUpLinkSession(CVoIPAudioServerSession* aSession, TBool aStatus);
       
    42     TBool HasDnLinkSession();
       
    43     TBool HasUpLinkSession();
       
    44 
       
    45     // ECall event handling
       
    46     void StartECallEventNotifierL();
       
    47     void CancelECallEventNotifier();
       
    48     void NotifyECallEvent(TInt aECall);
       
    49 
       
    50 private:
       
    51     CVoIPAudioServer();
       
    52     void ConstructL();
       
    53     CSession2* NewSessionL(const TVersion& aVersion,
       
    54             const RMessage2& aMessage) const;
       
    55 
       
    56 private:
       
    57     TInt iSession;
       
    58     TBool iECallInProgress;
       
    59     CDelayVoIPServerShutDown *iShutdownTimer;
       
    60     CVoIPECallEventHandler* iECallHandler;
       
    61     CVoIPAudioServerSession* iDnlinkSession;
       
    62     CVoIPAudioServerSession* iUplinkSession;
       
    63     };
       
    64 
       
    65 #endif //__VOIPAUDIOSERVER_H
       
    66 
       
    67 // End of file