calendarengines/agnversit2/inc/AgnVersit2.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 #ifndef AGNVERSIT2_H
       
     2 #define AGNVERSIT2_H/*
       
     3 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
       
     4 * All rights reserved.
       
     5 * This component and the accompanying materials are made available
       
     6 * under the terms of "Eclipse Public License v1.0"
       
     7 * which accompanies this distribution, and is available
       
     8 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9 *
       
    10 * Initial Contributors:
       
    11 * Nokia Corporation - initial contribution.
       
    12 *
       
    13 * Contributors:
       
    14 *
       
    15 * Description:   Implements the import functionality of CAgnVersit2
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // User includes
       
    22 #include "AgnExternalInterface.h"	//CAgnExternalInterface
       
    23 
       
    24 // Forward class declarations.
       
    25 class CAgnVersit2StringProvider;
       
    26 class CAgnVersit2Exporter;
       
    27 class CAgnVersit2Importer;
       
    28 class RReadStream;
       
    29 class RWriteStream;
       
    30 
       
    31 /**
       
    32 Implementation of CAgnExternalInterface for iCalendar files. Objects of this
       
    33 type are instantiated through the ECOM plugin mechanism in response to a mime
       
    34 type of text/calendar.
       
    35 @internalTechnology
       
    36 */
       
    37 class CAgnVersit2 : public CAgnExternalInterface
       
    38     {
       
    39 public:		// Construction/destruction.
       
    40     static CAgnVersit2* NewL();
       
    41     ~CAgnVersit2();
       
    42     
       
    43 public:		// Methods.
       
    44     void ImportL(RPointerArray<CCalEntry>& aEntries, RReadStream& aReadStream, TUint aFlags, MAgnImportObserver& aObserver);
       
    45     void ExportL(const CCalEntry& aEntry, RWriteStream& aWriteStream, TUint aFlags, MAgnExportObserver& aObserver);
       
    46     void ExportL(RPointerArray<CCalEntry>& aEntries, RWriteStream& aWriteStream, TUint aFlags, MAgnExportObserver& aObserver);
       
    47     
       
    48 private:	// Construction/destruction.
       
    49 	CAgnVersit2();
       
    50     void ConstructL();
       
    51 
       
    52 private:	// Members.
       
    53 	CAgnVersit2StringProvider* iStringProvider;
       
    54 	CAgnVersit2Exporter* iExporter;
       
    55 	CAgnVersit2Importer* iImporter;
       
    56     };
       
    57     
       
    58 #endif // AGNVERSIT2_H
       
    59 
       
    60 // End of file.