os/persistentdata/persistentstorage/centralrepository/convtool/src/CentRepConvTool.h
Update contrib.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __CENTREPCONVTOOL_H__
17 #define __CENTREPCONVTOOL_H__
21 #include "consoleprint.h"
24 const TInt KPrivatePathSize = 24;
26 // class CCentRepConvTool - parse the command line args to
27 // generate the input and output filenames. Then use objects
28 // of centrep server to do the convertion.
29 class CCentRepConvTool : public CBase
33 // By default error msgs wait for user ack. Test code should set
35 static CCentRepConvTool* NewL(const TDesC& aCmd, RFs& aFs, TBool aWaitForAck);
36 virtual ~CCentRepConvTool();
38 void SetOutputMode(TBool aWaitForAck);
41 CCentRepConvTool(const TDesC& aCmd, RFs& aFs);
42 void ConstructL(TBool aWaitForAck);
43 void ParseCmdLineL(TPtrC& aInputPath, TPtrC& aOutputPath);
44 void VerifyInputPathL();
45 void VerifyOutputPathL();
47 void ExternalizeToCreL();
48 TBool InOthersPrivatePath(const TDesC& aFullPathName);
53 CConsolePrint* iScrnOutput;
56 CSharedRepository* iCentRepShrepos;
59 TBuf<KPrivatePathSize> iMyDataCage;
60 TBuf<KMaxDriveName + 1> iDefaultPath;
63 #endif // __CENTREPCONVTOOL_H__