mmsharing/livecommsui/lcui/tsrc/mustester/Stubs/sipprofilestub/src/sipmanagedprofilestub.cpp
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     1 /*
       
     2 * Copyright (c) 2002 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:  implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 //  INCLUDE FILES
       
    20 
       
    21 #include "sipprofile.h"
       
    22 #include "sipmanagedprofile.h"
       
    23 #include "sipprofileregistry.h"
       
    24 #include "sipmanagedprofileregistry.h"
       
    25 
       
    26 /*
       
    27 
       
    28 //#include "sipconcreteprofile.h"
       
    29 //#include "SIPProfileTypeInfo.h"
       
    30 //_LIT8(KSIPProfileExtenstionParameter, "%u");
       
    31 //const TUint KProfileBufferSize = 25;
       
    32 
       
    33 _LIT8(KSIPProfileDefAOR, "user@aa");
       
    34         /** 
       
    35         * Sets profile parameter
       
    36         * @param aParam a parameter to set
       
    37         * @param aVal values to set; an empty array resets the value
       
    38         * @return KErrNotFound if parameter was not found, 
       
    39         *         KErrNoMemory if out of memory          
       
    40         *          KErrNone otherwise        
       
    41         */
       
    42 EXPORT_C TInt CSIPManagedProfile::SetParameter( TUint32 /*aParam*/, 
       
    43                                          const MDesC8Array& /*aVal*/ )
       
    44     {
       
    45     return KErrNone;
       
    46     }
       
    47 
       
    48 // ============================ MEMBER FUNCTIONS ===============================
       
    49 
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // CSIPManagedProfile::NewL
       
    53 // Two-phased constructor.
       
    54 // -----------------------------------------------------------------------------
       
    55 //
       
    56 CSIPManagedProfile* CSIPManagedProfile::NewL(CSIPManagedProfileRegistry* aSIPRegistry)
       
    57 	{
       
    58     CSIPManagedProfile* self = CSIPManagedProfile::NewLC (aSIPRegistry);
       
    59     CleanupStack::Pop();
       
    60     return self;
       
    61 	}
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // CSIPManagedProfile::NewLC
       
    65 // Two-phased constructor.
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 CSIPManagedProfile* CSIPManagedProfile::NewLC(CSIPManagedProfileRegistry* aSIPRegistry)
       
    69 	{
       
    70 	CSIPManagedProfile* self = new(ELeave)CSIPManagedProfile(aSIPRegistry);
       
    71     CleanupStack::PushL (self);
       
    72     return self;
       
    73 	}
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // CSIPManagedProfile::~CSIPManagedProfile
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 EXPORT_C CSIPManagedProfile::~CSIPManagedProfile()
       
    80 	{
       
    81 	}
       
    82 /*
       
    83 // -----------------------------------------------------------------------------
       
    84 // CSIPManagedProfile::GetParameter
       
    85 // -----------------------------------------------------------------------------
       
    86 //	
       
    87 EXPORT_C TInt CSIPManagedProfile::GetParameter(TUint32 aParam, TDesC8 const *& aVal ) const
       
    88 	{
       
    89 	const TDesC8& val= KSIPProfileDefAOR;
       
    90     aVal = &val;
       
    91 	return KErrNone;
       
    92 	}	
       
    93 
       
    94 // -----------------------------------------------------------------------------
       
    95 // CSIPManagedProfile::GetParameter
       
    96 // -----------------------------------------------------------------------------
       
    97 //	
       
    98 EXPORT_C TInt CSIPManagedProfile::GetParameter(TUint32 aParam, TUint32& aVal) const
       
    99 	{
       
   100 	aVal = 1;
       
   101 	return KErrNone;
       
   102 	}	
       
   103 
       
   104 // -----------------------------------------------------------------------------
       
   105 // CSIPManagedProfile::GetParameter
       
   106 // -----------------------------------------------------------------------------
       
   107 //	
       
   108 EXPORT_C TInt CSIPManagedProfile::GetParameter(TUint32 aParam, TBool& aVal) const
       
   109 	{
       
   110 	aVal = ETrue;
       
   111 	return KErrNone;
       
   112 	}
       
   113 */	
       
   114 // -----------------------------------------------------------------------------
       
   115 // CSIPManagedProfile::CSIPManagedProfile
       
   116 // -----------------------------------------------------------------------------
       
   117 //	
       
   118 CSIPManagedProfile::CSIPManagedProfile(CSIPManagedProfileRegistry* aRegistry) :
       
   119     CSIPProfile( aRegistry )
       
   120 	{
       
   121 	}
       
   122 
       
   123 /*
       
   124 // -----------------------------------------------------------------------------
       
   125 // CSIPManagedProfile::IsContextActive
       
   126 // -----------------------------------------------------------------------------
       
   127 //	
       
   128 TBool CSIPManagedProfile::IsContextActive() const
       
   129 	{
       
   130 	return ETrue;
       
   131 	}
       
   132 	
       
   133 // -----------------------------------------------------------------------------
       
   134 // CSIPManagedProfile::ContextId
       
   135 // -----------------------------------------------------------------------------
       
   136 //	
       
   137 TUint32 CSIPManagedProfile::ContextId() const
       
   138 	{
       
   139 	return 1;
       
   140 	}
       
   141 */