telephonyserverplugins/multimodetsy/Multimode/gprs/GprsNotify.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2001-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 // Gprs Notifications
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalAll 
       
    21 */
       
    22 
       
    23 #ifndef _GPRSNOTIFY_H
       
    24 #define _GPRSNOTIFY_H
       
    25 
       
    26 #include "NOTIFY.H"
       
    27 #include "etelpckt.h"
       
    28 
       
    29 
       
    30 
       
    31 
       
    32 class CGprsContextAddedNotify : public CNotifyBase
       
    33 /**
       
    34 This is a Notification class. Handles a GPRS context added notification.
       
    35 CGprsContextAddedNotify inherits from the CNotifyBase class defined in
       
    36 notify.h.
       
    37 @internalComponent
       
    38 */
       
    39 {
       
    40 public:
       
    41 	static CGprsContextAddedNotify* NewL(TTsyReqHandle aReqHandle,CTelObject* aTelObject,TDes* aContextId);
       
    42 	~CGprsContextAddedNotify();
       
    43 	virtual TBool CheckAndCompleteNotification(CTelObject* aTelObject,TEvent aEvent,TEvent aLastEvent);
       
    44 private:
       
    45 	CGprsContextAddedNotify(TTsyReqHandle aReqHandle,CTelObject* aTelObject,TDes* aContextId);
       
    46 	TDes* iContextId;									//< Pointer to clients notification structure/class.
       
    47 };		
       
    48 
       
    49 
       
    50 class CGprsStatusNotify : public CNotifyBase
       
    51 /**
       
    52 This is a Notification class. Handles a GPRS status notification.
       
    53 CGprsStatusNotify inherits from the CNotifyBase class defined in
       
    54 notify.h.
       
    55 @internalComponent
       
    56 */
       
    57 {
       
    58 public:
       
    59 	static CGprsStatusNotify* NewL(TTsyReqHandle aReqHandle,CTelObject* aTelObject,RPacketService::TStatus* aGprsStatus);
       
    60 protected:
       
    61 	CGprsStatusNotify(TTsyReqHandle aReqHandle,CTelObject* aTelObject,RPacketService::TStatus* aGprsStatus);
       
    62 	~CGprsStatusNotify();
       
    63 	virtual TBool CheckAndCompleteNotification(CTelObject* aTelObject,TEvent aEvent,TEvent aLastEvent);
       
    64 private:
       
    65 	RPacketService::TStatus* iGprsStatus;						//< Pointer to clients notification structure/class.
       
    66 };
       
    67 
       
    68 
       
    69 
       
    70 class CGprsNtwkRegStatusChangeNotify : public CNotifyBase
       
    71 /**
       
    72 Notification class for the NtwkRegStatusChange.
       
    73 This notification is completed when the phone
       
    74 @internalComponent
       
    75 */
       
    76 {
       
    77 public:
       
    78 	static CGprsNtwkRegStatusChangeNotify* NewL(TTsyReqHandle aReqHandle,CTelObject* aTelObject,RPacketService::TRegistrationStatus* aRegStatus);
       
    79 	virtual TBool CheckAndCompleteNotification(CTelObject* aTelObject, TNotifications aNotification);
       
    80 private:
       
    81 	CGprsNtwkRegStatusChangeNotify(TTsyReqHandle aReqHandle,CTelObject* aTelObject,RPacketService::TRegistrationStatus* aRegStatus);
       
    82 private:
       
    83 	RPacketService::TRegistrationStatus* iRegStatus;	//< Pointer to clients notification structure
       
    84 };		
       
    85 
       
    86 
       
    87 
       
    88 
       
    89 
       
    90 class CGprsContextConfigNotify: public CNotifyBase
       
    91 /**
       
    92 This is a Notification class. Handles a context configuration change notification.
       
    93 CGprsContextConfigNotify inherits from the CNotifyBase class defined in
       
    94 notify.h.
       
    95 @internalComponent
       
    96 */
       
    97 {
       
    98 public:
       
    99 	static CGprsContextConfigNotify* NewL(TTsyReqHandle aReqHandle,CTelObject* aTelObject,TDes8* aConfig);
       
   100 protected:
       
   101 	CGprsContextConfigNotify(TTsyReqHandle aReqHandle,CTelObject* aTelObject,TDes8* aConfig);
       
   102 	~CGprsContextConfigNotify();
       
   103 	virtual TBool CheckAndCompleteNotification(CTelObject* aTelObject,TEvent aEvent,TEvent aLastEvent);
       
   104 
       
   105 private:
       
   106 	TDes8* iConfig;										//< Pointer to clients notification structure/class.
       
   107 };
       
   108 
       
   109 
       
   110 
       
   111 class CGprsContextStatusNotify: public CNotifyBase
       
   112 /**
       
   113 This is a Notification class. Handles a GPRS context status change notification.
       
   114 CGprsContextStatusNotify inherits from the CNotifyBase class defined in
       
   115 notify.h.
       
   116 @internalComponent
       
   117 */
       
   118 {
       
   119 public:
       
   120 	static CGprsContextStatusNotify* NewL(TTsyReqHandle aReqHandle,CTelObject* aTelObject,RPacketContext::TContextStatus* aContextStatus);
       
   121 protected:
       
   122 	CGprsContextStatusNotify(TTsyReqHandle aReqHandle,CTelObject* aTelObject,RPacketContext::TContextStatus* aContextStatus);
       
   123 	~CGprsContextStatusNotify();
       
   124 	virtual TBool CheckAndCompleteNotification(CTelObject* aTelObject,TEvent aEvent,TEvent aLastEvent);
       
   125 private:
       
   126 	RPacketContext::TContextStatus* iContextStatus;		//< Pointer to clients notification structure/class.
       
   127 };
       
   128 
       
   129 
       
   130 
       
   131 class CGprsQoSProfileNotify: public CNotifyBase
       
   132 /**
       
   133 This is a Notification class. Handles a qos profile configuration change notification.
       
   134 CGprsQoSProfileNotify inherits from the CNotifyBase class defined in
       
   135 notify.h.
       
   136 @internalComponent
       
   137 */
       
   138 {
       
   139 public:
       
   140 	static CGprsQoSProfileNotify* NewL(TTsyReqHandle aReqHandle,CTelObject* aTelObject,TDes8* aProfile);
       
   141 protected:
       
   142 	CGprsQoSProfileNotify(TTsyReqHandle aReqHandle,CTelObject* aTelObject,TDes8* aProfile);
       
   143 	~CGprsQoSProfileNotify();
       
   144 	virtual TBool CheckAndCompleteNotification(CTelObject* aTelObject,TEvent aEvent,TEvent aLastEvent);
       
   145 private:
       
   146 	TDes8* iProfile;										//< Pointer to clients notification structure/class.
       
   147 };
       
   148 
       
   149 #endif