voipplugins/voipadapters/cpvoipadapter/inc/CWPSIPSpecificSettingsItem.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2002-2009 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:  Handles and stores the SIP profile relateted SIP URIs needed
       
    15 *                by VoIP when functioning in SIP mode.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CWPSIPSPECIFICSETTINGSITEM_H
       
    21 #define CWPSIPSPECIFICSETTINGSITEM_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h> // CBase
       
    25 
       
    26 // CLASS DECLARATION
       
    27 /**
       
    28 *  This class keeps transiently the VoIP codec data and stores the 
       
    29 *  codec via interface provided by RCSE.
       
    30 *
       
    31 *  @lib CWPSIPSpecificSettingsItem.lib
       
    32 *  @since Series 60 3.0
       
    33 */
       
    34 class CWPSIPSpecificSettingsItem : public CBase
       
    35     {
       
    36     #ifdef _DEBUG
       
    37     /**
       
    38      * Friend class for unit testing.
       
    39      */
       
    40     friend class UT_CWPVoIPAdapter;
       
    41     friend class UT_CWPSIPSpecificSettingsItem;
       
    42     friend class UT_CWPVoIPItem;
       
    43     #endif
       
    44 
       
    45     
       
    46     public: // Constructors and destructor
       
    47         
       
    48         /**
       
    49          * Two-phased constructor.
       
    50         */
       
    51         static CWPSIPSpecificSettingsItem* NewL();
       
    52         
       
    53         /**
       
    54          * Destructor.
       
    55          */
       
    56         virtual ~CWPSIPSpecificSettingsItem();
       
    57 
       
    58     public: // New functions
       
    59         /**
       
    60          * SetConferencingFactoryURIL.
       
    61          * @since Series 60 3.0
       
    62          * @param TDesC& aParamameter
       
    63          */
       
    64         void SetConferencingFactoryURIL( const TDesC& aParamameter );
       
    65 
       
    66         /**
       
    67          * SetMusicServerURIL
       
    68          * @since Series 60 3.0
       
    69          * @param TDesC& aParamameter
       
    70          */
       
    71         void SetMusicServerURIL( const TDesC& aParamameter );
       
    72         
       
    73         /**
       
    74          * SetIPVoiceMailBoxURIL
       
    75          * @since Series 60 3.0
       
    76          * @param TDesC& aParamameter
       
    77          */
       
    78         void SetIPVoiceMailBoxURIL( const TDesC& aParamameter );
       
    79         
       
    80         /**
       
    81          * SetCFNoAnsURIL
       
    82          * @since Series 60 3.0
       
    83          * @param TDesC& aParamameter
       
    84          */
       
    85         void SetCFNoAnsURIL( const TDesC& aParamameter );
       
    86         
       
    87         /**
       
    88          * SetCFBusyURIL
       
    89          * @since Series 60 3.0
       
    90          * @param TDesC& aParamameter
       
    91          */
       
    92         void SetCFBusyURIL( const TDesC& aParamameter );
       
    93         
       
    94         /**
       
    95          * SetCFUncondURIL
       
    96          * @since Series 60 3.0
       
    97          * @param TDesC& aParamameter
       
    98          */
       
    99         void SetCFUncondURIL( const TDesC& aParamameter );
       
   100         
       
   101         /**
       
   102          * SetToAppRefL
       
   103          * @since Series 60 3.0
       
   104          * @param TDesC& aParamameter
       
   105          */
       
   106         void SetToAppRefL( const TDesC8& aParamameter );
       
   107         
       
   108     private:
       
   109 
       
   110         /**
       
   111          * C++ default constructor.
       
   112          */
       
   113         CWPSIPSpecificSettingsItem();
       
   114 
       
   115         /**
       
   116          * By default Symbian 2nd phase constructor is private.
       
   117          */
       
   118         void ConstructL();
       
   119 
       
   120     public: // Data
       
   121         
       
   122         // SIP related parameters described in the document VoIP software 
       
   123         // settings.
       
   124         
       
   125         /*
       
   126          * Id of the SIP profile specific VoIP settings.
       
   127          */
       
   128         TUint iId;
       
   129         
       
   130         /*
       
   131          * APPREF value which is referred (SIP or SCCP settings).
       
   132          * Own.
       
   133          */
       
   134         HBufC8* iToAppRef;
       
   135         
       
   136         /*
       
   137          * SIP profile id.
       
   138          */
       
   139         TUint iSipProfileReferred;
       
   140         
       
   141 
       
   142         /*
       
   143          * Conferencing factory URI.
       
   144          * Own.
       
   145          */
       
   146         HBufC* iConferencingFactoryURI;
       
   147         
       
   148         /*
       
   149          * Music server URI.
       
   150          * Own.
       
   151          */
       
   152         HBufC* iMusicServerURI;
       
   153         
       
   154         /*
       
   155          * IP VoiceMailBox URI.
       
   156          * Own.
       
   157          */
       
   158         HBufC* iIPVoiceMailBoxURI;
       
   159         
       
   160         /*
       
   161          * Call forwarding URI when no answer.
       
   162          * Own.
       
   163          */
       
   164         HBufC* iCFNoAnsURI;
       
   165         
       
   166         /*
       
   167          * Call forwarding URI when busy.
       
   168          * Own.
       
   169          */
       
   170         HBufC* iCFBusyURI;
       
   171         
       
   172         /*
       
   173          * Unconditional call forwarding URI.
       
   174          * Own.
       
   175          */
       
   176         HBufC* iCFUncondURI;
       
   177     };
       
   178 
       
   179 #endif      // CWPSIPSPECIFICSETTINGSITEM_H
       
   180             
       
   181 // End of File