meetingrequest/mrguicommon/inc/esmrvcalexport.h
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2007-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 "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:  VCal exporter for send ui wrapper
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TESMRVCALEXPORT_H
       
    20 #define TESMRVCALEXPORT_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <f32file.h> // for TParse
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CCalSession;
       
    28 class CCalEntry;
       
    29 
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34  *  Exports Agenda entry to VCalendar data
       
    35  *
       
    36  */
       
    37 NONSHARABLE_CLASS( TESMRVCalExport )
       
    38     {
       
    39 public:  // Constructors and destructor
       
    40     /**
       
    41      * C++ default constructor.
       
    42      */
       
    43     TESMRVCalExport(CCalSession& aCalSession, RFs& aFileServerSession);
       
    44 
       
    45 public: // New functions
       
    46     /**
       
    47      * Exports CCalEntry into VCalendar format
       
    48      *
       
    49      * @param aEntry - entry to be exported
       
    50      * @return Descriptor that points to the exported data
       
    51      */
       
    52     HBufC8* ExportVCalLC(CCalEntry& aEntry);
       
    53 
       
    54 protected: // New functions
       
    55     void ConvertVCalL(CBufFlat* aBuf, CCalEntry& aEntry);
       
    56     void ConvertICalL(CBufFlat* aBuf, CCalEntry& aEntry);
       
    57 
       
    58 private:    // Data
       
    59 
       
    60     // Ref: calendar session
       
    61     CCalSession& iSession;
       
    62 
       
    63     // Ref: file server session
       
    64     RFs& iFs;
       
    65     };
       
    66 
       
    67 #endif
       
    68 
       
    69 
       
    70 // End of File