uiacceltk/hitchcock/AlfDecoderServerClient/src/alfdecoderserverclient.cpp
branchRCL_3
changeset 11 46927d61fef3
parent 8 10534483575f
child 24 f93c875b566e
equal deleted inserted replaced
10:88b23e2e82e1 11:46927d61fef3
   145 EXPORT_C void RAlfBridgerClient::SendAsynchronous(TInt aOp, const TIpcArgs& aIPCArgs,TRequestStatus& aStatus )
   145 EXPORT_C void RAlfBridgerClient::SendAsynchronous(TInt aOp, const TIpcArgs& aIPCArgs,TRequestStatus& aStatus )
   146     {
   146     {
   147     SendReceive(aOp, aIPCArgs, aStatus );
   147     SendReceive(aOp, aIPCArgs, aStatus );
   148     }
   148     }
   149 
   149 
   150 
   150 TInt RAlfBridgerClient::GetListOfWindowGroups(RArray<TInt>* aWindowGroups, TBool aListAll)
   151 EXPORT_C TInt RAlfBridgerClient::GetListOfInactiveWindowGroupsWSurfaces(RArray<TInt>* aWindowGroups)
       
   152     {
   151     {
   153     TInt err = KErrNone;
   152     TInt err = KErrNone;
   154     TInt array[10];
   153     TInt array[10];
   155     TPtr8 ptr((TUint8*)array,0,40);
   154     TPtr8 ptr((TUint8*)array,0,40);
   156     err = SendReceive(EAlfGetListOfWGsHavingInactiveSurfaces, TIpcArgs(&ptr));
   155     err = SendReceive(EAlfGetListOfWGsHavingInactiveSurfaces, TIpcArgs(&ptr, aListAll));
   157     if (!err)
   156     if (!err)
   158         {
   157         {
   159         for(TInt i = 0; i < 10; i++)
   158         for(TInt i = 0; i < 10; i++)
   160             {
   159             {
   161             if (array[i])
   160             if (array[i])
   169             }    
   168             }    
   170         }
   169         }
   171     return err; 
   170     return err; 
   172     }
   171     }
   173 
   172 
       
   173 EXPORT_C TInt RAlfBridgerClient::GetListOfInactiveWindowGroupsWSurfaces(RArray<TInt>* aWindowGroups)
       
   174     {
       
   175     return GetListOfWindowGroups(aWindowGroups, EFalse);
       
   176     }
       
   177 
       
   178 EXPORT_C TInt RAlfBridgerClient::GetListOfWindowGroupsWSurfaces(RArray<TInt>* aWindowGroups)
       
   179     {
       
   180     return GetListOfWindowGroups(aWindowGroups, ETrue);
       
   181     }
       
   182 
       
   183 
       
   184 
       
   185 // ---------------------------------------------------------------------------
       
   186 // EffectsCount
       
   187 // ---------------------------------------------------------------------------
       
   188 //
       
   189 EXPORT_C TInt RAlfBridgerClient::EffectsCount()
       
   190     {
       
   191     return SendReceive(EAlfGetNumberOfActiveEffects, TIpcArgs());
       
   192     }
       
   193 
       
   194 
   174 // Open
   195 // Open
   175 // ---------------------------------------------------------------------------
   196 // ---------------------------------------------------------------------------
   176 //
   197 //
   177 EXPORT_C TInt RAlfTfxClient::Open()
   198 EXPORT_C TInt RAlfTfxClient::Open()
   178     {
   199     {