pimappsupport/vcardandvcal/tsrc/tvgen.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 // Copyright (c) 1997-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15  
       
    16 #if !defined(__TVGEN_H__)
       
    17 #define __TVGEN_H__
       
    18 
       
    19 #include <vcal.h>
       
    20 #include <vcard.h>
       
    21 #include <e32cons.h>
       
    22 #include <s32stor.h>
       
    23 #include <s32file.h>
       
    24 
       
    25 class CVersitTest : public CBase
       
    26 	{
       
    27 public:
       
    28 	CVersitTest();
       
    29 	~CVersitTest();
       
    30 	void StreamInL();
       
    31 	void StreamOutL();
       
    32 	virtual void LoadFileVersitL()=0;
       
    33 	void SaveFileVersitL(CVersitParser::TVersitCharSet aDefaultCharSet = CVersitParser::EUSAsciiCharSet);
       
    34 	virtual void GetSampleVersitL()=0;
       
    35 	virtual void BuildVersitL()=0;
       
    36 	void CheckIsValidLabelL();
       
    37 public:
       
    38 	CVersitParser* iParser;
       
    39 protected:
       
    40 	CDirectFileStore* iStore; // Store to/Restore from this store
       
    41 	TBuf8<10000> iVersit;
       
    42 	};
       
    43 
       
    44 class CVCalTest : public CVersitTest
       
    45 	{
       
    46 public: // framework
       
    47 	void LoadFileVersitL();
       
    48 	void GetSampleVersitL();
       
    49 	void BuildVersitL();
       
    50 	};
       
    51 
       
    52 class CVCardTest : public CVersitTest
       
    53 	{
       
    54 public: // framework
       
    55 	void LoadFileVersitL();
       
    56 	void GetSampleVersitL();
       
    57 	void BuildVersitL();
       
    58 	};
       
    59 
       
    60 #endif