inc/musavasettings.h
changeset 22 496ad160a278
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     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:  This interface is used by
       
    15 *                clients to get and availability setting for Video Charging
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __MUSAVASETTINGS_H__
       
    21 #define __MUSAVASETTINGS_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <badesca.h>
       
    25 #include <e32base.h>
       
    26 #include <e32std.h>
       
    27 #include <mussettingskeys.h>
       
    28 
       
    29 class MMusAvaSettingsObserver;
       
    30 
       
    31 /**
       
    32  *  Defines setting interface for the MusAvailability Plug-in
       
    33  *
       
    34  *  ECOM clients set and get setting are used by MusAvailability Plug-in.
       
    35  *
       
    36  *  @lib musavailabilityplugin.lib
       
    37  */
       
    38 
       
    39 class MMusAvaSettings
       
    40 	{
       
    41 	
       
    42 public: 
       
    43 
       
    44     enum TManualActivation
       
    45         {
       
    46         EActivationNotExecuted,
       
    47         EActivationExecuted,
       
    48         EActivationAllowed,
       
    49         EActivationNotAllowed
       
    50         };
       
    51 public:
       
    52     
       
    53     /**
       
    54     * Returns the fast mode value
       
    55     *
       
    56     * @return The fast mode value.
       
    57     */         
       
    58     virtual MusSettingsKeys::TFastMode FastMode() const;
       
    59     
       
    60     
       
    61     /**
       
    62     * Returns the manual activation
       
    63     *
       
    64     */   		
       
    65     virtual TManualActivation ManualActivation();
       
    66     	
       
    67     /**
       
    68      * Returns the telephone number of remote host of active CS call.
       
    69      *
       
    70      * @return The telephone number.
       
    71      */   		
       
    72     virtual const TDesC& TelNumber() const;    	
       
    73 
       
    74     /**
       
    75      * Returns the contact name of remote host of active CS call.
       
    76      *
       
    77      * @return The contact name.
       
    78      */   		
       
    79     virtual const TDesC& ContactName() const;    	
       
    80     
       
    81     /**
       
    82      * Returns the possible SIP addresses of the remote host.
       
    83      *
       
    84      * @return The SIP addresses in an array.
       
    85      */   		
       
    86     virtual const MDesCArray& SipAddresses() const;
       
    87     
       
    88     /**
       
    89      * Returns the proposal for the remote host SIP address.
       
    90      *
       
    91      * @return The telephone number.
       
    92      */   		
       
    93     virtual const TDesC& SipAddressProposal() const;
       
    94     
       
    95     /**
       
    96      * Returns the contact id of the remote host.
       
    97      *
       
    98      * @return The contact id; KErrNotFound, if not found any.
       
    99      */   		
       
   100     virtual TInt ContactId() const;
       
   101 
       
   102     /**
       
   103      * Returns the supported video codecs.
       
   104      *
       
   105      * @return The video codecs
       
   106      */   		
       
   107     virtual const MDesCArray& VideoCodecs() const;
       
   108     
       
   109     /**
       
   110      * Returns the supported audio codecs.
       
   111      *
       
   112      * @return The supported audio codecs.
       
   113      */   		
       
   114     virtual const MDesCArray& AudioCodecs() const;
       
   115 
       
   116     /**
       
   117      * Returns the id of the preferable SIP profile.
       
   118      *
       
   119      * @return The SIP profile id.
       
   120      */   		
       
   121     virtual TInt SipProfileId() const;
       
   122 
       
   123     /**
       
   124      * Sets the settings observer pointer
       
   125      *
       
   126      */   		
       
   127     virtual void SetObserver( MMusAvaSettingsObserver& aObserver );
       
   128     
       
   129     /*
       
   130     * Gets the settings observer pointer 
       
   131     * 
       
   132     */
       
   133     MMusAvaSettingsObserver* Observer();
       
   134     
       
   135      /**
       
   136      * Sets the for the manual activation
       
   137      *
       
   138      */   		
       
   139     virtual void SetManualActivation( TManualActivation aManualActivation );
       
   140 
       
   141 	};
       
   142 
       
   143 #include "musavasettings.inl"
       
   144 
       
   145 #endif
       
   146