adaptationlayer/tsy/nokiatsy_dll/inc/cmmpacketcontextmesshandler.h
changeset 8 6295dc2169f3
parent 0 63b37f68c1ce
child 9 8486d82aef45
equal deleted inserted replaced
7:fa67e03b87df 8:6295dc2169f3
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description: 
    14 * Description:
    15 *
    15 *
    16 */
    16 */
    17 
       
    18 
       
    19 
    17 
    20 #ifndef CMMPACKETCONTEXTMESSHANDLER_H
    18 #ifndef CMMPACKETCONTEXTMESSHANDLER_H
    21 #define CMMPACKETCONTEXTMESSHANDLER_H
    19 #define CMMPACKETCONTEXTMESSHANDLER_H
    22 
    20 
    23 // INCLUDES
    21 // INCLUDES
   112 const TUint8 KCallPadding = 0x00;
   110 const TUint8 KCallPadding = 0x00;
   113 
   111 
   114 // Subbclock length
   112 // Subbclock length
   115 const TInt KSubBlockLengthOffset1 = 1;
   113 const TInt KSubBlockLengthOffset1 = 1;
   116 
   114 
   117 // masks for detailed cause values.
       
   118 // see 3GPP TS 24.008 V5.16.0 spec
       
   119 const TUint8 KDiagnosticsOctet2( 0x02 ); // B0000_0100
       
   120 const TUint8 KDiagnosticsOctet3( 0xC0 ); // B1100_0000
       
   121 const TUint8 KDiagnosticsOctet4( 0x95 ); // B1001_0101
       
   122 const TUint8 KDiagnosticsOctet5( 0x82 ); // B1000_0010
       
   123 const TUint8 KDiagnosticsOctet6( 0x02 ); // B0000_0010
       
   124 
       
   125 // MACROS
   115 // MACROS
   126     // None
   116     // None
   127 
   117 
   128 // DATA TYPES
   118 // DATA TYPES
   129     // None
   119     // None
   228 
   218 
   229         /**
   219         /**
   230         * By default Symbian 2nd phase constructor is private.
   220         * By default Symbian 2nd phase constructor is private.
   231         */
   221         */
   232         void ConstructL();
   222         void ConstructL();
   233         
   223 
   234     private: // New functions
   224     private: // New functions
   235 
   225 
   236         /**
   226         /**
   237         * Create an Isi-message for creating a context id.
   227         * Create an Isi-message for creating a context id.
   238         * @param aCreateContextIdTransId: create context id transaction id
   228         * @param aCreateContextIdTransId: create context id transaction id
   823         /**
   813         /**
   824         * Breaks received CallModemResourceResp ISI message.
   814         * Breaks received CallModemResourceResp ISI message.
   825         * @param aIsiMessage: received Isi message.
   815         * @param aIsiMessage: received Isi message.
   826         */
   816         */
   827         void CallModemResourceResp( const TIsiReceiveC &aIsiMessage );
   817         void CallModemResourceResp( const TIsiReceiveC &aIsiMessage );
   828         
   818 
   829         /**
   819         /**
   830         * Creates SendCallmodemResourceDenied ISI message to modem call server.
   820         * Creates SendCallmodemResourceDenied ISI message to modem call server.
   831         * @param aDatapackage
   821         * @param aDatapackage
   832         * @return None
   822         * @return None
   833         */
   823         */
   834         void CallModemResourceReqDenied();
   824         void CallModemResourceReqDenied(
   835         
   825             const TUint8 aCauseType,
       
   826             const TUint8 aCause,
       
   827             const TDesC8& aDetailedCause );
       
   828 
   836         /*
   829         /*
   837         * This method completes drive mode functions, if drive mode flag 
   830         * This method completes drive mode functions, if drive mode flag
   838         * is enabled
   831         * is enabled
   839         * @param aDataPackage: data package
   832         * @param aDataPackage: data package
   840         * @return TInt: KErrNone 
   833         * @return TInt: KErrNone
   841         */
   834         */
   842         void CompleteDCMdrivemodeFunctionalityL();
   835         void CompleteDCMdrivemodeFunctionalityL();
       
   836 
       
   837         /*
       
   838         * This method interpretes channel ID from context name.
       
   839         * @param TInfoName: Context name
       
   840         * @return TInt: Channel ID
       
   841         */
       
   842         TInt getProxyId(const TInfoName& contextName);
   843 
   843 
   844     public: // Data
   844     public: // Data
   845         // None
   845         // None
   846 
   846 
   847     protected: // Data
   847     protected: // Data
   891         // List of contexts to be deactivated (for allow incoming call feature)
   891         // List of contexts to be deactivated (for allow incoming call feature)
   892         CArrayFixFlat<TUint8>* iDeactivateContextList;
   892         CArrayFixFlat<TUint8>* iDeactivateContextList;
   893 
   893 
   894         // Buffer for isimessage. Used in resource control
   894         // Buffer for isimessage. Used in resource control
   895         HBufC8* iResourceControlMsg;
   895         HBufC8* iResourceControlMsg;
   896         
   896 
   897         //drive mode flag 
   897         // drive mode flag
   898         TBool iDriveModeFlag;
   898         TBool iDriveModeFlag;
   899 
   899 
   900     };
   900     };
   901 
   901 
   902 #endif // CMMPACKETCONTEXTMESSHANDLER_H
   902 #endif // CMMPACKETCONTEXTMESSHANDLER_H