phonesrv_plat/service_provider_settings_api/inc/spnotifychange.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
    34  *
    34  *
    35  *  @lib serviceprovidersettings.lib
    35  *  @lib serviceprovidersettings.lib
    36  *  @since S60 3.2
    36  *  @since S60 3.2
    37  */
    37  */
    38 NONSHARABLE_CLASS( CSPNotifyChange ): public CActive
    38 NONSHARABLE_CLASS( CSPNotifyChange ): public CActive
    39     {
    39 	{
    40     public: // Constructor and destructor
    40 	public: // Constructor and destructor
    41     
    41 	
    42         /**
    42 	    /**
    43         * Two-phased constructor.
    43 	    * Two-phased constructor.
    44         */
    44 	    */
    45         IMPORT_C static CSPNotifyChange* NewL( MSPNotifyChangeObserver& aObserver );
    45 	    IMPORT_C static CSPNotifyChange* NewL( MSPNotifyChangeObserver& aObserver );
    46 
    46 
    47         /**
    47 	    /**
    48         * Destructors.
    48 	    * Destructors.
    49         */
    49 	    */
    50         IMPORT_C virtual ~CSPNotifyChange();
    50 	    IMPORT_C virtual ~CSPNotifyChange();
    51 
    51 
    52     public: 
    52 	public: 
    53         /**
    53 	    /**
    54          * Issue notify service change rquest.
    54 	     * Issue notify service change rquest.
    55          *
    55 	     *
    56          * @since S60 V3.2
    56 	     * @since S60 V3.2
    57          * @param aServiceIds The service ID array of monitored service entries
    57 	     * @param aServiceIds The service ID array of monitored service entries
    58          */
    58 	     */
    59         IMPORT_C void NotifyChangeL( const RIdArray& aServiceIds );
    59 	    IMPORT_C void NotifyChangeL( const RIdArray& aServiceIds );
    60 
    60 
    61         /**
    61 	    /**
    62          * Cancel notify change.
    62 	     * Cancel notify change.
    63          *
    63 	     *
    64          * @since S60 V3.2
    64 	     * @since S60 V3.2
    65          */
    65 	     */
    66         IMPORT_C void NotifyChangeCancel();
    66 	    IMPORT_C void NotifyChangeCancel();
    67 
    67 
    68     protected: // from CActive
    68 	protected: // from CActive
    69 
    69 
    70         void DoCancel();
    70 	    void DoCancel();
    71 
    71 
    72         void RunL();
    72 	    void RunL();
    73         
    73 	    
    74         TInt RunError( TInt aError );
    74 	    TInt RunError( TInt aError );
    75 
    75 
    76         void Subscribe();
    76 	    void Subscribe();
    77     private:
    77 	private:
    78 
    78 
    79         /**
    79 	    /**
    80         * C++ default constructor.
    80 	    * C++ default constructor.
    81         */
    81 	    */
    82         CSPNotifyChange( MSPNotifyChangeObserver& aObserver );
    82 	    CSPNotifyChange( MSPNotifyChangeObserver& aObserver );
    83 
    83 
    84         /**
    84 	    /**
    85         * By default Symbian 2nd phase constructor is private.
    85 	    * By default Symbian 2nd phase constructor is private.
    86         */
    86 	    */
    87         void ConstructL();
    87 	    void ConstructL();
    88 
    88 
    89     private:
    89 	private:
    90 
    90 
    91         /**
    91 	    /**
    92          * Publish & Subscribe connection
    92 	     * Publish & Subscribe connection
    93          */
    93 	     */
    94         RProperty       iProperty;
    94 	    RProperty       iProperty;
    95 
    95 
    96         /**
    96 	    /**
    97          * Observer object
    97 	     * Observer object
    98          */
    98 	     */
    99         MSPNotifyChangeObserver& iObserver;
    99 	    MSPNotifyChangeObserver& iObserver;
   100         
   100 	    
   101         /**
   101 	    /**
   102          * Id array
   102 	     * Id array
   103          */
   103 	     */
   104         RIdArray        iIdArray;
   104 	    RIdArray		iIdArray;
   105         
   105 	    
   106         /**
   106 	    /**
   107          * Contains buffered P&S data
   107 	     * Contains buffered P&S data
   108          */
   108 	     */
   109         CSpsBufferedPublisher* iData;
   109 	    CSpsBufferedPublisher* iData;
   110     };
   110 	};
   111 
   111 
   112 #endif // CSPNOTIFYCHANGE_H
   112 #endif // CSPNOTIFYCHANGE_H
   113 
   113