diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-2DBA78FC-C6F9-5183-8818-59335580D5D2.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-2DBA78FC-C6F9-5183-8818-59335580D5D2.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,196 @@ + + + + + + Packet +Service Functions TutorialThis section describes how to use the packet data service functions +for the packet switched networks. +The RPacketService class describes the packet +switched connections. + + + + +Create an instance +of RPhone. + +Use RPacketService::Open() to +create a packet service sub-session to the packet switched network. +Use RPacketSercvice::NotifyContextAdded() to +get the notification of any new context added to the device + + +Use RPacketService::Attach() to +request the telephony server to attach the device to a packet service connection. + + +Use RPacketService::Detach() to +request the device to remove from a packet service. + + +Use RPacketService::GetStatus() to +retrieve the network status of the packet service. +Use RPacketService::NotifyStatusChange() to +get the notification of any changes to the packet service network status. + + +Use RPacketService::ContextActicvationRequest() to +get the notification of any request to activate a packet service from the +network. + + +Use RPacketService::RejectActivationRequest() to +reject the network request to activate the packet service. + + +Use RPacketService::EnumerateContexts() to +retrieve the number of open contexts and the maximum number of contexts that +can be opened. + + +Use RPacketService::CancelAsyncRequest() to +cancel an earlier request. + + +Use RPacketService::GetContextInfo() to +retrieve the information of a context specified. +The function returns the context reference ID and the status of the +context. + + +Use RPacketService::NotfyMbmsNetworkServiceStatusChange() to +get the notification of any changes to the MBMS. + + +Use RPacketService::GetMbmsNetworkServiceStatus() to +retrieve the MBMS support of the network. + + +Use RPacketService::NotifyMbmsServiceAvailabilityChange() to +get the notification of any changes to MBMS service availability list. + + +to retrieve the MBMS service available list: + + +create an instance of CRetrievePcktMbmsMonitoredServices CRetrievePcktMbmsMonitoredServices* +CRetrievePcktMbmsMonitoredServices::NewL(RPacketService& aService) + + +start an asynchronous list retrieval CRetrievePcktMbmsMonitoredServices::Start(TRequestStatus& aReqStatus); + + +retrieve the list CPcktMbmsMonitoredServiceList* +CRetrievePcktMbmsMonitoredServices::RetrieveListL() const + + +Use CRetrievePcktMbmsMonitoredServices::Cancel() to +cancel the request to retrieve the list + + + + +Use RPacketService::UpdateMbmsMonitorServiceListL() to +update the MBMS service availability list. + + +Use RPacketService::EnumerateMbmsMonitorServiceList() to +retrieve the number of MBMS services monitored and the maximum number of MBMS +services supported by the device. + + +Use RPacketService::GetNtwkRegStatus() to +retrieve the packet service registration of the device with the network. + + +Use RPacketService::NotifyChangeOfNtwkRegStatus() to +get the notification of any changes to the status of the network registration + + +Use RPacketService::GetMSClass() to +retrieve the current class and the maximum class of the device. +The types of the mobile classes are defined in the TMSClass enumeration. + + +Use RPacketService::SetMSClass() to +set the type of class to be used by the device. + + +Use RPacketService::NotifyMSClassChange() to +get the notification of any change to the class of the device. + + +Use RPacketService::GetStaticCaps() to +retrieve the static capabilities of the device. +The static capabilities are defined in the TStaticMiscCaps enumeration. + + +Use RPacketService::GetDynamicCaps() to +retrieve the dynamic capabilities of the device. +The dynamic capabilities are defined in the TDynamicCaps enumeration. + + +Use RPacketService::NotifyDynamicCapsChange() to +get the notification of any changes in the dynamic capabilities of the device. + + +Use RPacketService::SetPreferredBearer() to +set the bearer for the class C devices. + + +Use RPacketService::GetPreferredBearer() to +retrieve the current bearer for Class C mode. + + +Use RPacketService::SetAttachMode() to +instruct the device on how to connect to a packet service. +The device can attach to the packet service when available or when required. +The types of attach modes are defined in TAttachMode enumeration. + + +Use RPacketService::GetAttachMode() to +get the current attach mode defined for the device. + + +Use RPacketService::NotifyAttachModeChange() to +get the notification of any changes to the packet service attach mode. + + +Use RPacketService::SetDefaultContextParams() to +set the default context parameters. + + +Use RPacketService::GetDefaultContextParams() to +get the default context parameters used. + + +Use RTelSubSessionBase::CancelAsyncRequest() to +cancel any of the asynchronous commands. +Use aReqToCancel parameter to define the command to +be cancelled. + + +Use RPacketService::Close() to +close a packet service connection + + +

Release a network +when the device is outside the home network.

    +
  • Use RPacketService::GetCurrentReleaseMode() to +get the current release mode.

    The release mode is defined in the TPacketReleaseMode enumeration.

  • +
  • Use RPacketService::NotifyReleaseModeChange() to +get the notification of any changes to the release mode.

  • +
  • Use RTelSubSessionBase::CancelAsyncRequest() cancel +the commands

  • +
+
+Network Interface + Tutorial +
\ No newline at end of file