idlefw/plugins/devicestatus/src/aicontentobserveroptimizer.cpp
branchRCL_3
changeset 9 d0529222e3f0
parent 0 79c6a41cd166
child 18 bd874ee5e5e2
equal deleted inserted replaced
4:1a2a00e78665 9:d0529222e3f0
    76     iTransactionStarted = EFalse;
    76     iTransactionStarted = EFalse;
    77     return err;
    77     return err;
    78     }
    78     }
    79     
    79     
    80     
    80     
    81 TBool CAiContentObserverOptimizer::CanPublish( MAiPropertyExtension& aPlugin,
    81 TBool CAiContentObserverOptimizer::CanPublish( CHsContentPublisher& aPlugin,
    82                                            TInt aContent,
    82                                            TInt aContent,
    83                                            TInt aIndex )
    83                                            TInt aIndex )
    84     {
    84     {
    85     return iObserver.CanPublish( aPlugin, aContent, aIndex );
    85     return iObserver.CanPublish( aPlugin, aContent, aIndex );
    86     }
    86     }
    87   
    87   
    88 TInt CAiContentObserverOptimizer::Publish( MAiPropertyExtension& aPlugin,
    88 TInt CAiContentObserverOptimizer::Publish( CHsContentPublisher& aPlugin,
    89                                        TInt aContent,
    89                                        TInt aContent,
    90                                        TInt aResource,
    90                                        TInt aResource,
    91                                        TInt aIndex )
    91                                        TInt aIndex )
    92     {
    92     {
    93     if ( IsInBlackList( aContent, aIndex ) )
    93     if ( IsInBlackList( aContent, aIndex ) )
   109         }
   109         }
   110     return err;
   110     return err;
   111     }
   111     }
   112     
   112     
   113     
   113     
   114 TInt CAiContentObserverOptimizer::Publish( MAiPropertyExtension& aPlugin,
   114 TInt CAiContentObserverOptimizer::Publish( CHsContentPublisher& aPlugin,
   115                                        TInt aContent,
   115                                        TInt aContent,
   116                                        const TDesC16& aText,
   116                                        const TDesC16& aText,
   117                                        TInt aIndex )
   117                                        TInt aIndex )
   118     {
   118     {
   119     if ( IsInBlackList( aContent, aIndex ) )
   119     if ( IsInBlackList( aContent, aIndex ) )
   135         }
   135         }
   136     return err;
   136     return err;
   137     }
   137     }
   138     
   138     
   139     
   139     
   140 TInt CAiContentObserverOptimizer::Publish( MAiPropertyExtension& aPlugin,
   140 TInt CAiContentObserverOptimizer::Publish( CHsContentPublisher& aPlugin,
   141                                        TInt aContent,
   141                                        TInt aContent,
   142                                        const TDesC8& aBuf,
   142                                        const TDesC8& aBuf,
   143                                        TInt aIndex )
   143                                        TInt aIndex )
   144     {
   144     {
   145     if ( IsInBlackList( aContent, aIndex ) )
   145     if ( IsInBlackList( aContent, aIndex ) )
   162     return err;
   162     return err;
   163     
   163     
   164     }
   164     }
   165     
   165     
   166     
   166     
   167 TInt CAiContentObserverOptimizer::Publish( MAiPropertyExtension& aPlugin,
   167 TInt CAiContentObserverOptimizer::Publish( CHsContentPublisher& aPlugin,
   168                                        TInt aContent,
   168                                        TInt aContent,
   169                                        RFile& aFile,
   169                                        RFile& aFile,
   170                                        TInt aIndex )
   170                                        TInt aIndex )
   171     {
   171     {
   172     if ( IsInBlackList( aContent, aIndex ) )
   172     if ( IsInBlackList( aContent, aIndex ) )
   188         }
   188         }
   189     return err;
   189     return err;
   190     }
   190     }
   191     
   191     
   192     
   192     
   193 TInt CAiContentObserverOptimizer::Clean( MAiPropertyExtension& aPlugin,
   193 TInt CAiContentObserverOptimizer::Clean( CHsContentPublisher& aPlugin,
   194                                      TInt aContent,
   194                                      TInt aContent,
   195                                      TInt aIndex )
   195                                      TInt aIndex )
   196     {
   196     {
   197     return iObserver.Clean( aPlugin, aContent, aIndex );    
   197     return iObserver.Clean( aPlugin, aContent, aIndex );    
   198     }
   198     }