mmsharing/mmshavailability/inc/musavainviteresponder.h
changeset 0 f0cf47e981f9
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     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:  Provide interface for the client requestin network availability.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MUSAVAINVITERESPONDER_H__
       
    20 #define __MUSAVAINVITERESPONDER_H__
       
    21 
       
    22 #include "musunittesting.h"
       
    23 #include <e32base.h>
       
    24 
       
    25 class CSIPServerTransaction;
       
    26 class MMusAvaInviteResponderObserver;
       
    27 class CSIPTransactionBase;
       
    28 class CSIPResponseElements;
       
    29 
       
    30 /**
       
    31  *  Responds to a non-desired invitation.
       
    32  *
       
    33  *  @lib musavailabilityplugin.lib
       
    34  *  @since S60 v3.2
       
    35  */
       
    36 class CMusAvaInviteResponder : public CBase
       
    37 	{
       
    38 public:
       
    39 
       
    40     /**
       
    41      * 
       
    42      *
       
    43      * @since S60 v3.2
       
    44      */   		
       
    45     static CMusAvaInviteResponder* NewL( CSIPServerTransaction* aTransaction,
       
    46                                   MMusAvaInviteResponderObserver& aObserver );
       
    47                                   
       
    48     /**
       
    49      * 
       
    50      *
       
    51      * @since S60 v3.2
       
    52      */   		
       
    53     static CMusAvaInviteResponder* NewLC( 
       
    54                                    CSIPServerTransaction* aTransAction,
       
    55                                    MMusAvaInviteResponderObserver& aObserver );
       
    56     /**
       
    57      * 
       
    58      *
       
    59      * @since S60 v3.2
       
    60      */   		
       
    61     ~CMusAvaInviteResponder();
       
    62     
       
    63 
       
    64 public:
       
    65 
       
    66     /**
       
    67      * 
       
    68      *
       
    69      * @since S60 v3.2
       
    70      */   		
       
    71     void AnswerL();
       
    72     
       
    73     /**
       
    74      * Send response to request.
       
    75      *
       
    76      * @since S60 v3.2
       
    77      */ 
       
    78 
       
    79     void SendResponseL( TUint aStatusCode,
       
    80                         const TDesC8& aReasonPhrase );
       
    81     
       
    82     /**
       
    83      * Returns response status.
       
    84      *
       
    85      * @since S60 v3.2
       
    86      */ 
       
    87     TBool ResponseComplete();
       
    88 
       
    89      /**
       
    90      * Send Response to reques.
       
    91      *
       
    92      * @since S60 v3.2
       
    93      */ 
       
    94     void ResponseL( CSIPResponseElements* aResponseElements );
       
    95 
       
    96 
       
    97                                    
       
    98 private:
       
    99 
       
   100     /**
       
   101      * 
       
   102      *
       
   103      * @since S60 v3.2
       
   104      */   		
       
   105     CMusAvaInviteResponder( CSIPServerTransaction* aTransAction,
       
   106                             MMusAvaInviteResponderObserver& aObserver );
       
   107                             
       
   108 	
       
   109 private:
       
   110 
       
   111     /**
       
   112      * Reference to observer.
       
   113      */
       
   114     MMusAvaInviteResponderObserver& iObserver;
       
   115     
       
   116     /**
       
   117      * SIP transaction. Owns.
       
   118      */
       
   119     CSIPServerTransaction* iTransaction;
       
   120     MUS_UNITTEST( UT_CMusAvaInviteResponder )
       
   121     };
       
   122 
       
   123 
       
   124 #endif // __MUSAVAINVITERESPONDER_H__