1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/f32test/fileshare/handshare64bit.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,66 @@
1.4 +/**
1.5 +* Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of the License "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +* File Name: f32test/fileshare/handshare64bit.h
1.19 +* Client side Interface for the 64bit file handle server
1.20 +* used by t_file64bit.cpp
1.21 +*
1.22 +*
1.23 +*/
1.24 +
1.25 +
1.26 +
1.27 +
1.28 +#ifndef __HANDSHARE64BIT_H__
1.29 +#define __HANDSHARE64BIT_H__
1.30 +#include <e32base.h>
1.31 +#include <f32file.h>
1.32 +
1.33 +class RFileHandleSharer64Bit : public RSessionBase
1.34 + {
1.35 +public:
1.36 + enum TMessage
1.37 + {
1.38 + EMsgGetFileHandleLargeFile,
1.39 + EMsgPassFileHandleProcessLargeFileClient,
1.40 + EMsgPassFileHandleProcessLargeFileCreator,
1.41 + EMsgExit,
1.42 + EMsgSync,
1.43 + EMsgDrive
1.44 + };
1.45 +public:
1.46 + TInt Connect();
1.47 + TInt SetTestDrive(TInt aDrive);
1.48 + TInt GetFileHandleLargeFile2(TInt &aHandle, TFileMode aFileMode);
1.49 + TInt PassFileHandleProcessLargeFileClient(TIpcArgs& aIpcArgs);
1.50 + TInt PassFileHandleProcessLargeFileCreator();
1.51 + TInt Exit();
1.52 + void Sync();
1.53 + };
1.54 +
1.55 +
1.56 +_LIT8(KTestData, "Client Write Client Write");
1.57 +_LIT8(KTestData1, "Server Write Server Write");
1.58 +_LIT8(KTestData2, "How");
1.59 +_LIT8(KTestData3, "How are U");
1.60 +_LIT8(KTestData4, "Server!!!");
1.61 +
1.62 +
1.63 +_LIT( KSvrFileName, "mini.txt");
1.64 +_LIT( KCliFileName, "mighty.txt");
1.65 +_LIT( KServerFileName, "server.txt");
1.66 +
1.67 +
1.68 +#endif
1.69 +