uiacceltk/hitchcock/ServerCore/Inc/alfstreamerbridge.h
changeset 19 f5bac0badc7e
parent 0 15bf7259bb7c
child 17 3ac8bf5c5014
equal deleted inserted replaced
14:83d2d132aa58 19:f5bac0badc7e
   190     TInt iInt2;
   190     TInt iInt2;
   191     TAny* iPtr;
   191     TAny* iPtr;
   192     };
   192     };
   193 
   193 
   194 
   194 
   195 NONSHARABLE_CLASS(CAlfStreamerBridge): public CActive, public CHuiEnv::MHuiSwapObserver
   195 NONSHARABLE_CLASS(CAlfStreamerBridge): public CActive
   196 
   196 
   197     {
   197     {
   198     public:
   198     public:
   199    
   199    
   200     CAlfStreamerBridge(MAlfStreamerListener* aObserver);
   200     CAlfStreamerBridge(MAlfStreamerListener* aObserver);
   280      * @since S60 5.0
   280      * @since S60 5.0
   281      * @param aIndex Offset to the data struct  (relative to iDataBuf)
   281      * @param aIndex Offset to the data struct  (relative to iDataBuf)
   282      * @return Pointer to the data struct 
   282      * @return Pointer to the data struct 
   283      */
   283      */
   284     const TAny* GetVarDataL( TInt aIndex );
   284     const TAny* GetVarDataL( TInt aIndex );
   285 
   285     
   286     
   286     /* deprecated */
   287 	/**
       
   288      * SetStreamerServer()
       
   289      *
       
   290      * Sets Streamserver instance. 
       
   291      */
       
   292     void SetStreamerServer( CAlfStreamerServer& aStreamerServer );
       
   293     /**
       
   294      * StreamerServer()
       
   295      *
       
   296      * Gets Streamserver instance set with set functionality.
       
   297 	 * @see SetStreamerServer()
       
   298      */
       
   299     CAlfStreamerServer* StreamerServer();
       
   300 
       
   301     IMPORT_C TUid FindAppUidForWgId(TInt aWgId);
   287     IMPORT_C TUid FindAppUidForWgId(TInt aWgId);
   302     IMPORT_C TInt FindWgForAppUid(TUid aAppUid);
   288     IMPORT_C TInt FindWgForAppUid(TUid aAppUid);
       
   289 
       
   290     void SetObserver(MAlfStreamerListener* aObserver)
       
   291         {
       
   292         iObserver = aObserver;
       
   293         }        
   303 
   294 
   304 public: // from CActive
   295 public: // from CActive
   305         
   296         
   306     void RunL();
   297     void RunL();
   307     
       
   308     void DoCancel();
   298     void DoCancel();
   309     
   299     
   310 public: // from SwapObserver
       
   311     void PrepareSwap();
       
   312     void SwapComplete();
       
   313     void ReleaseWindowServer(TBool aRelease = ETrue);
       
   314     void SetWgIdArray(TInt* aArray); 
       
   315     
       
   316 private:
   300 private:
   317         
   301 
       
   302     CAlfStreamerServer* iStreamerServer;        
   318     MAlfStreamerListener* iObserver;
   303     MAlfStreamerListener* iObserver;
   319    
       
   320     MAlfBatchObs* iBatchObserver;
   304     MAlfBatchObs* iBatchObserver;
   321     
       
   322     TThreadId iThread;
   305     TThreadId iThread;
   323     
   306     
   324     RArray<TAlfBridgerData> iMessages;
   307     RArray<TAlfBridgerData> iMessages;
   325     
       
   326     RArray<TInt> iQueue;
   308     RArray<TInt> iQueue;
   327     
   309     
   328     RCriticalSection iQueueSema;
   310     RCriticalSection iQueueSema;
   329     
   311     
   330     RBuf8 iDataBuf;
   312     RBuf8 iDataBuf;
   331    
   313     volatile TInt iItemsInBuffer;
   332     TInt iItemsInBuffer;
   314     volatile TBool iVarDataAddedButNotPosted;
   333 
   315 
   334     RArray<TAlfBridgerData> iFxMessages;
       
   335     RArray<TInt> iFxQueue;
       
   336     RBuf8 iFxBuf;
       
   337     TInt iFxItemsInBuffer;
       
   338     
       
   339     CAlfStreamerServer* iStreamerServer;
       
   340 #ifdef ALF_DEBUG_TRACK_DRAWING    
   316 #ifdef ALF_DEBUG_TRACK_DRAWING    
   341     CAlfCommandDebug* iCommandDebugger;
   317     CAlfCommandDebug* iCommandDebugger;
   342 #endif
   318 #endif
   343     
   319 
   344     volatile TBool iSwapActive;
   320 public:
   345     volatile TBool iMakeCurrentActive;
   321     volatile TAlfNativeWindowData iAlfWindowData;
   346 
   322     volatile TInt iActiveEffectCount;
   347     TBool iFxQueueActive;
       
   348     TInt* iWgArray;
       
   349     TBool iVarDataAddedButNotPosted;
       
   350 public:
       
   351     TAlfNativeWindowData iAlfWindowData;
       
   352 
       
   353     };
   323     };
   354 
   324 
   355 
   325 
   356 #endif // __ALF_STREAMER_BRIDGE__
   326 #endif // __ALF_STREAMER_BRIDGE__