os/kernelhwsrv/kerneltest/f32test/fileshare/handshare64bit.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /**
     2 * Copyright (c) 1996-2009 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 the License "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:
    15 * File Name:		f32test/fileshare/handshare64bit.h
    16 * Client side Interface for the 64bit file handle server
    17 * used by t_file64bit.cpp
    18 * 
    19 *
    20 */
    21 
    22 
    23 
    24 
    25 #ifndef __HANDSHARE64BIT_H__
    26 #define __HANDSHARE64BIT_H__
    27 #include <e32base.h>
    28 #include <f32file.h>
    29 
    30 class RFileHandleSharer64Bit : public RSessionBase
    31 	{
    32 public:
    33 	enum TMessage
    34 		{
    35 		EMsgGetFileHandleLargeFile,
    36 		EMsgPassFileHandleProcessLargeFileClient,
    37 		EMsgPassFileHandleProcessLargeFileCreator,
    38 		EMsgExit,
    39 		EMsgSync,
    40 		EMsgDrive
    41 		};
    42 public:
    43 	TInt Connect();
    44 	TInt SetTestDrive(TInt aDrive);
    45 	TInt GetFileHandleLargeFile2(TInt &aHandle, TFileMode aFileMode);
    46 	TInt PassFileHandleProcessLargeFileClient(TIpcArgs& aIpcArgs);
    47 	TInt PassFileHandleProcessLargeFileCreator();
    48 	TInt Exit();
    49 	void Sync();
    50 	};
    51 
    52 
    53 _LIT8(KTestData, "Client Write Client Write");
    54 _LIT8(KTestData1, "Server Write Server Write");
    55 _LIT8(KTestData2, "How");
    56 _LIT8(KTestData3, "How are U");
    57 _LIT8(KTestData4, "Server!!!");
    58 
    59 
    60 _LIT( KSvrFileName, "mini.txt");
    61 _LIT( KCliFileName, "mighty.txt");
    62 _LIT( KServerFileName, "server.txt");
    63 
    64 
    65 #endif
    66