cbsref/telephonyrefplugins/atltsy/atcommand/generic/inc/ltsycallinformation.h
changeset 44 8b72faa1200f
equal deleted inserted replaced
39:2473f5e227f9 44:8b72faa1200f
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This contains TLtsyCallInformation which store baseband related call information
       
    15 // 
       
    16 
       
    17 #ifndef LTSYCALLINFORMATION_H_
       
    18 #define LTSYCALLINFORMATION_H_
       
    19 
       
    20 //system include
       
    21 #include <e32base.h>
       
    22 #include <etelmm.h>
       
    23 
       
    24 //user include
       
    25 
       
    26 class TLtsyCallInformation
       
    27 	{
       
    28 public:
       
    29 	/**
       
    30 	 * 
       
    31 	 * 
       
    32 	 */
       
    33 	TLtsyCallInformation();
       
    34 	
       
    35 	/**
       
    36 	 *Call id is used or not 
       
    37 	 * 
       
    38 	 */
       
    39 	enum TCallIdUsedInfo
       
    40 		{
       
    41 		EUsed,
       
    42 		ENotUsed
       
    43 		};
       
    44 	
       
    45 	/**
       
    46 	 * Direction of the call
       
    47 	 * 
       
    48 	 */
       
    49 	enum TDirectionCall
       
    50 		{
       
    51 		EUnknownDirection = -1,	//Don't know
       
    52 		EMoCall = 0, 	//Mobile originated(MO) call
       
    53 		EMtCall = 1   	//Moblie teminated(MT) call
       
    54 		};
       
    55 
       
    56 	/**
       
    57 	 * State of the call
       
    58 	 * 
       
    59 	 */
       
    60 	enum TCallState
       
    61 		{
       
    62 		EUnknownState = -1,   //Don't know call state
       
    63 		EActiveCall = 0,	  //Active call
       
    64 		EHeldCall = 1,        //Hold call
       
    65 		EDialingCall = 2,     //Dialing Call(MO call)
       
    66 		EAlertingCall = 3,    //Alerting Call(MO call)
       
    67 		EInComingCall = 4,    //InComing call(MT call)
       
    68 		EWaitingCall = 5      //Waiting call(MT call)
       
    69 		};
       
    70 	
       
    71 	/**
       
    72 	 * Teleservice
       
    73 	 * 
       
    74 	 */
       
    75 	enum TCallMode
       
    76 		{
       
    77 		EVoiceCall  = 0,
       
    78 		EDataCall   = 1,
       
    79 		EFaxCall    = 2,
       
    80 		EUnKnowCall = 9
       
    81 		};	
       
    82 	
       
    83 	/**
       
    84 	 * Multiparty(Conference)
       
    85 	 * 
       
    86 	 */
       
    87 	enum TConferenceCall
       
    88 		{
       
    89 		EUnknownIsConference = -1, //Don't know
       
    90 		ENotConference = 0,		   //Not conference
       
    91 		EIsConference  = 1         //Conference
       
    92 		};
       
    93 	
       
    94 public:
       
    95 	/**
       
    96 	 * 
       
    97 	 */
       
    98 	void SetCallId(TInt aCallId);
       
    99 	
       
   100 	/**
       
   101 	 * 
       
   102 	 * 
       
   103 	 */
       
   104 	TInt GetCallId() const;
       
   105 	
       
   106 	void SetCallIdIsUsedInfo(TCallIdUsedInfo aUsedInfo);
       
   107 	TCallIdUsedInfo GetCallIdIsUsedInfo() const;
       
   108 	
       
   109 	void SetCallDirection(TDirectionCall aDirection);
       
   110 	TDirectionCall GetCallDirection() const;
       
   111 	
       
   112 	void SetCallState(TCallState aCallState);
       
   113 	TCallState GetCallState() const;
       
   114 	
       
   115 	void SetCallMode(TCallMode aCallMode);
       
   116 	TCallMode GetCallMode() const;
       
   117 	
       
   118 	void SetConferenceCall(TConferenceCall aConferenceCall);
       
   119 	TConferenceCall GetConferenceCall() const;
       
   120 	
       
   121 	void SetMobileTelNum(const TDesC8& aTelNum);
       
   122 	const TDesC8& GetMobileTelNum() const;
       
   123 	
       
   124 	void SetAddressType(TInt aAddressType);
       
   125 	TInt GetAddressType() const;
       
   126 	
       
   127 	void SetMobileName(const TDesC8& aMobileName);
       
   128 	const TDesC8& GetMobileName() const;
       
   129 	
       
   130 	void SetEmergencyCallFlag(TBool aIsEmergency);
       
   131 	TBool GetEmergencyCallFlag() const;
       
   132 	
       
   133 private:
       
   134 	
       
   135 	/**
       
   136 	 * Call id
       
   137 	 * 
       
   138 	 */
       
   139 	TInt iCallId;
       
   140 	
       
   141 	/**
       
   142 	 * Call id used info
       
   143 	 * 
       
   144 	 */
       
   145 	TCallIdUsedInfo iUsedInfo;
       
   146 	
       
   147 	/**
       
   148 	 * Direction of the call
       
   149 	 * 
       
   150 	 */
       
   151 	TDirectionCall iDirection;
       
   152 	
       
   153 	/**
       
   154 	 * State of the call
       
   155 	 * 
       
   156 	 */
       
   157 	TCallState iCallState;
       
   158 	
       
   159 	/**
       
   160 	 * Teleservice
       
   161 	 * 
       
   162 	 */
       
   163 	TCallMode iCallMode;
       
   164 	
       
   165 	/**
       
   166 	 * Multiparty(Conference)
       
   167 	 * 
       
   168 	 */
       
   169 	TConferenceCall iIsConference;
       
   170 	
       
   171 	/**
       
   172 	 * Telephone num
       
   173 	 * 
       
   174 	 */
       
   175 	TBuf8<RMobilePhone::KMaxMobileTelNumberSize> iTelNum; 
       
   176 	
       
   177 	/**
       
   178 	 * 
       
   179 	 * 
       
   180 	 */
       
   181 	TInt iAddressType;
       
   182 	
       
   183 	/**
       
   184 	 * Moblie name
       
   185 	 * 
       
   186 	 */
       
   187 	TBuf8<RMobilePhone::KMaxMobileNameSize> iMobileName;
       
   188 	
       
   189 	/**
       
   190 	 * Emergency call
       
   191 	 * 
       
   192 	 */
       
   193 	TBool iIsEmergencyCall;
       
   194 	
       
   195 	};
       
   196 
       
   197 #endif /*LTSYCALLINFORMATION_H_*/