uiacceltk/hitchcock/CommonInc/alfdecoderserverclient.h
changeset 0 15bf7259bb7c
child 6 10534483575f
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Interface for granting a permission and for using files from 
       
    15 *                apps' private cage. No capabilities required 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __ALFBRIDGERCLIENT_H__
       
    22 #define __ALFBRIDGERCLIENT_H__
       
    23 
       
    24 #include <e32std.h>
       
    25 #include <e32def.h>
       
    26 #include <e32base.h>
       
    27 
       
    28 NONSHARABLE_CLASS(AlfServerStarter)
       
    29 	{
       
    30 	public:
       
    31 	static IMPORT_C void StartL(TRequestStatus& aStatus, TBool aCreateProcess = ETrue);
       
    32 	};
       
    33 
       
    34 
       
    35 /**
       
    36 * internal client for decoder server
       
    37 */    
       
    38 NONSHARABLE_CLASS(RAlfBridgerClient): public RSessionBase
       
    39     {
       
    40 public:
       
    41     /**
       
    42 	* Connects to server. Assumes that server is up and running
       
    43 	*/
       
    44     IMPORT_C TInt Connect();
       
    45     
       
    46     IMPORT_C TInt SendSynch(TInt aOp, const TDesC8& aBuffer);
       
    47     
       
    48     IMPORT_C TInt SendSynch(TInt aOp, const TIpcArgs& aIPCArgs );
       
    49 
       
    50     IMPORT_C void SendAsynchronous(TInt aOp, const TIpcArgs& aIPCArgs,TRequestStatus& aStatus );
       
    51 
       
    52     IMPORT_C TInt SendBlind(TInt aOp, const TIpcArgs& aIPCArgs );
       
    53 private:
       
    54     TInt iSpare1;
       
    55     TInt iSpare2;
       
    56     };
       
    57 
       
    58 
       
    59 NONSHARABLE_CLASS(RAlfTfxClient): public RAlfBridgerClient
       
    60     {
       
    61 public:
       
    62     /**
       
    63 	* Connects to server. Assumes that server is up and running
       
    64 	*/
       
    65     IMPORT_C TInt Open();
       
    66 
       
    67     /**
       
    68     * Loads effects plugin with given implementation uid. 
       
    69     * If the plugin was already loaded, returns KErrAlreadyExists, otherwise system wide error codes.	
       
    70     */
       
    71     IMPORT_C TInt LoadTfxPlugin(const TUid& aPluginUid);
       
    72 
       
    73     /**
       
    74     * Unloads effects plugin with given implementation uid. If the plugin had created some additional 
       
    75     * windows to scene, those will be closed
       
    76     */
       
    77     IMPORT_C void UnloadTfxPlugin(const TUid& aPluginUid);
       
    78     
       
    79     /**
       
    80     * Sends message for a plugin, synhcronous method
       
    81     */
       
    82     IMPORT_C TInt SendSynchronousData(const TUid& aPluginUid, const TDesC8& aInBuf, TDes8& aOutBuf);
       
    83  
       
    84     /**
       
    85     * Sends message for a plugin, asynhcronous method. Calling implementation must ensure that buffers exist 
       
    86     * when command is being executed and completed in server.
       
    87     */   
       
    88     IMPORT_C void SendAsynchronousData(const TUid& aPluginUid, const TDesC8& aInBuf, TDes8& aOutBuf, TRequestStatus& aStatus);
       
    89  
       
    90     /**
       
    91     * Cancels asynchronous command, if the default values are used, all commands specific for this client will be cancelled
       
    92     * Message ids are implementation specific.
       
    93     */   
       
    94     IMPORT_C void CancelAsynchronousData(const TUid& aPluginUid = KNullUid, TInt aCommandId = 0);
       
    95 
       
    96     /**
       
    97      * Trigger effects plugins to prepare next frame. Only FW should use this method
       
    98      */
       
    99     IMPORT_C void PrepareFrame(TUint aEstimatedFrameInterval);
       
   100 
       
   101 private:
       
   102     TInt iSpare1;
       
   103     TInt iSpare2;
       
   104     };
       
   105     
       
   106 #endif