localconnectivityservice/dun/atext/inc/DunAtEcomListen.h
branchRCL_3
changeset 38 3dcb815346df
parent 0 c3e98f10fcf4
equal deleted inserted replaced
37:7e0ecb5b116a 38:3dcb815346df
    24 
    24 
    25 /**
    25 /**
    26  *  Notification interface class for ECOM plugin interface status changes
    26  *  Notification interface class for ECOM plugin interface status changes
    27  *
    27  *
    28  *  @lib dunatext.lib
    28  *  @lib dunatext.lib
    29  *  @since S60 v5.0
    29  *  @since TB9.2
    30  */
    30  */
    31 NONSHARABLE_CLASS( MDunAtEcomListen )
    31 NONSHARABLE_CLASS( MDunAtEcomListen )
    32     {
    32     {
    33 
    33 
    34 public:
    34 public:
    35 
    35 
    36     /**
    36     /**
    37      * Notifies about new plugin installation
    37      * Notifies about new plugin installation
    38      *
    38      *
    39      * @since S60 5.0
    39      * @since TB9.2
    40      * @param aPluginUid UID of installed plugin
    40      * @param aPluginUid UID of installed plugin
    41      * @return Symbian error code on error, KErrNone otherwise
    41      * @return Symbian error code on error, KErrNone otherwise
    42      */
    42      */
    43     virtual TInt NotifyPluginInstallation( TUid& aPluginUid ) = 0;
    43     virtual TInt NotifyPluginInstallation( TUid& aPluginUid ) = 0;
    44 
    44 
    45     /**
    45     /**
    46      * Notifies about existing plugin uninstallation
    46      * Notifies about existing plugin uninstallation
    47      *
    47      *
    48      * @since S60 5.0
    48      * @since TB9.2
    49      * @param aPluginUid UID of uninstalled plugin
    49      * @param aPluginUid UID of uninstalled plugin
    50      * @return Symbian error code on error, KErrNone otherwise
    50      * @return Symbian error code on error, KErrNone otherwise
    51      */
    51      */
    52     virtual TInt NotifyPluginUninstallation( TUid& aPluginUid ) = 0;
    52     virtual TInt NotifyPluginUninstallation( TUid& aPluginUid ) = 0;
    53 
    53 
    55 
    55 
    56 /**
    56 /**
    57  *  Class for ECom plugin install/uninstall/version listener
    57  *  Class for ECom plugin install/uninstall/version listener
    58  *
    58  *
    59  *  @lib dunatext.lib
    59  *  @lib dunatext.lib
    60  *  @since S60 v5.0
    60  *  @since TB9.2
    61  */
    61  */
    62 NONSHARABLE_CLASS( CDunAtEcomListen ) : public CActive
    62 NONSHARABLE_CLASS( CDunAtEcomListen ) : public CActive
    63     {
    63     {
    64 
    64 
    65 public:
    65 public:
    79      * @param aCallback Callback to mode status change
    79      * @param aCallback Callback to mode status change
    80      * @return Instance of self
    80      * @return Instance of self
    81      */
    81      */
    82     static CDunAtEcomListen* NewLC( RATExt* aAtCmdExt,
    82     static CDunAtEcomListen* NewLC( RATExt* aAtCmdExt,
    83                                     MDunAtEcomListen* aCallback );
    83                                     MDunAtEcomListen* aCallback );
    84 	
    84 
    85     /**
    85     /**
    86     * Destructor.
    86     * Destructor.
    87     */
    87     */
    88     virtual ~CDunAtEcomListen();
    88     virtual ~CDunAtEcomListen();
    89 
    89 
    90     /**
    90     /**
    91      * Resets data to initial values
    91      * Resets data to initial values
    92      *
    92      *
    93      * @since S60 5.0
    93      * @since TB9.2
    94      * @return None
    94      * @return None
    95      */
    95      */
    96     void ResetData();
    96     void ResetData();
    97 
    97 
    98     /**
    98     /**
    99      * Starts waiting for ECom plugin install/uninstall/version status changes
    99      * Starts waiting for ECom plugin install/uninstall/version status changes
   100      *
   100      *
   101      * @since S60 5.0
   101      * @since TB9.2
   102      * @return Symbian error code on error, KErrNone otherwise
   102      * @return Symbian error code on error, KErrNone otherwise
   103      */
   103      */
   104     TInt IssueRequest();
   104     TInt IssueRequest();
   105 
   105 
   106     /**
   106     /**
   107      * Stops waiting for Ecom plugin install/uninstall/version status changes
   107      * Stops waiting for Ecom plugin install/uninstall/version status changes
   108      *
   108      *
   109      * @since S60 5.0
   109      * @since TB9.2
   110      * @return Symbian error code on error, KErrNone otherwise
   110      * @return Symbian error code on error, KErrNone otherwise
   111      */
   111      */
   112     TInt Stop();
   112     TInt Stop();
   113 
   113 
   114 private:
   114 private:
   119     void ConstructL();
   119     void ConstructL();
   120 
   120 
   121     /**
   121     /**
   122      * Initializes this class
   122      * Initializes this class
   123      *
   123      *
   124      * @since S60 5.0
   124      * @since TB9.2
   125      * @return None
   125      * @return None
   126      */
   126      */
   127     void Initialize();
   127     void Initialize();
   128 
   128 
   129 // from base class CActive
   129 // from base class CActive
   130 
   130 
   131     /**
   131     /**
   132      * From CActive.
   132      * From CActive.
   133      * Gets called when plugin installed, uninstalled or changed
   133      * Gets called when plugin installed, uninstalled or changed
   134      *
   134      *
   135      * @since S60 5.0
   135      * @since TB9.2
   136      * @return None
   136      * @return None
   137      */
   137      */
   138     void RunL();
   138     void RunL();
   139 
   139 
   140     /**
   140     /**
   141      * From CActive.
   141      * From CActive.
   142      * Gets called on cancel
   142      * Gets called on cancel
   143      *
   143      *
   144      * @since S60 5.0
   144      * @since TB9.2
   145      * @return None
   145      * @return None
   146      */
   146      */
   147     void DoCancel();
   147     void DoCancel();
   148 
   148 
   149 private:  // data
   149 private:  // data