realtimenetprots/sipfw/ProfileAgent/Server/Inc/SipProfileCSSessionHelper.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2003-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:
       
    15 * Name        : sipprofilecssessionhelper.h
       
    16 * Part of     : SIP Profile Server
       
    17 * Interface   : private
       
    18 * The class wrapping IPC read and write operations 
       
    19 * Version     : 1.0
       
    20 *
       
    21 */
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 /**
       
    27  @internalComponent
       
    28 */
       
    29 
       
    30 #ifndef CSIPPROFILECSSESSIONHELPER_H
       
    31 #define CSIPPROFILECSSESSIONHELPER_H
       
    32 
       
    33 //  INCLUDES
       
    34 
       
    35 #include "sipprofilecs.h"
       
    36 #include "sipconcreteprofileobserver.h"
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 
       
    40 class CSIPProfileCSServer;
       
    41 class CSIPProfileServerCore;
       
    42 class CSIPConcreteProfile;
       
    43 class CSIPConcreteProfileHolder;
       
    44 class TSIPProfileSlots;
       
    45 class TSIPProfileTypeInfo;
       
    46 
       
    47 // CLASS DECLARATION
       
    48 
       
    49 /**
       
    50  * The class used for caching and reference counting of profiles.
       
    51  */
       
    52 class CSIPProfileCSSessionHelper : public CBase
       
    53 	{
       
    54 	public:
       
    55 
       
    56 	    /**
       
    57         * Gets IPC service function
       
    58 		* @param aMessage handle for IPC communication
       
    59 		* @return service request function
       
    60         */
       
    61 		TInt ServiceFunction(const RMessage2& aMessage) const;
       
    62 
       
    63 	    /**
       
    64         * Completes IPC function
       
    65 		* @param aMessage handle for IPC communication
       
    66 		* @param aCode return code
       
    67         */
       
    68 		void CompleteService(
       
    69 		    const RMessage2& aMessage,
       
    70 		    TInt aCode) const;
       
    71 
       
    72 	    /**
       
    73         * Gets IPC argument as integer
       
    74 		* @param aItcArgIndex index of argument
       
    75 		* @param aMessage handle for IPC communication
       
    76         */
       
    77 		TUint IPCArgTUintL(
       
    78 		    TSipProfileItcArguments aItcArgIndex,
       
    79             const RMessage2&  aMessage) const;
       
    80 
       
    81 	    /**
       
    82         * Gets serialized object from IPC
       
    83 		* @param aIpcArgIndex index of argument
       
    84 		* @param aMessage handle for IPC communication
       
    85         */
       
    86 		HBufC8* ReadLC(
       
    87 		    TSipProfileItcArguments aIpcArgIndex,
       
    88 		    const RMessage2&  aMessage) const;
       
    89 		    
       
    90 	    /**
       
    91         * Gets id slots to write return values of request
       
    92 		* @param aMessage handle for IPC communication
       
    93         */
       
    94 		TSIPProfileSlots ReadSipIdsL(const RMessage2& aMessage) const;
       
    95 
       
    96 	    /**
       
    97         * Writes return values in id slots 
       
    98 		* @param aMessage handle for IPC communication
       
    99 		* @param aIds structure holding return values
       
   100         */
       
   101 		void WriteL(
       
   102 		    const RMessage2& aMessage,
       
   103 		    const TSIPProfileSlots& aIds);
       
   104 
       
   105 	    /**
       
   106         * Writes serialized object as return value 
       
   107 		* @param aItcArgIndex index of argument
       
   108 		* @param aMessage handle for IPC communication
       
   109 		* @param aDes serialized object
       
   110         */
       
   111 		void WriteL(
       
   112 		    TSipProfileItcArguments aArg,
       
   113 		    const RMessage2& aMessage, 
       
   114             const TDesC8& aDes);
       
   115             
       
   116          void ReadSIPProfileTypeInfoL(
       
   117             const RMessage2&  aMessage,
       
   118             TSIPProfileTypeInfo& aTypeInfo) const;
       
   119 	};
       
   120 
       
   121 #endif // CSIPPROFILECSSESSIONHELPER_H