meetingrequest/mrcalremoteattachment/remoteattachment/inc/ccalremoteattachmentinfo.h
branchRCL_3
changeset 12 4ce476e64c59
child 16 b5fbb9b25d57
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CCALREMOTEATTACHMENTINFO_H
       
    19 #define CCALREMOTEATTACHMENTINFO_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <mcalremoteattachmentinfo.h>
       
    23 
       
    24 class CCalRemoteAttachment;
       
    25 
       
    26 /**
       
    27  * CCalRemoteAttachmentInfo contains information
       
    28  * about attachments.
       
    29  */
       
    30 NONSHARABLE_CLASS( CCalRemoteAttachmentInfo ) :
       
    31         public CBase,    
       
    32         public MCalRemoteAttachmentInfo
       
    33     {
       
    34 public: // Construction and destruction
       
    35     /**
       
    36      * Creates CCalRemoteAttachmentInfo object.
       
    37      * Ownership is transferred to caller.
       
    38      * 
       
    39      * @return Pointer to CCalRemoteAttachmentInfo
       
    40      */
       
    41     IMPORT_C static CCalRemoteAttachmentInfo* NewL();
       
    42     
       
    43     /**
       
    44      * C++ destructor
       
    45      */
       
    46     IMPORT_C ~CCalRemoteAttachmentInfo();
       
    47     
       
    48 public: // 
       
    49     void AddAttachmentInfoL(
       
    50             const TDesC& aAttachmentIdentifier,
       
    51             const TDesC& aAttachmentLabel,
       
    52             TInt aAttachmentSizeInBytes,
       
    53             MCalRemoteAttachment::TCalRemoteAttachmentState aState );
       
    54      void AddAttachmentInfoL(
       
    55              MCalRemoteAttachment* aAttachment );
       
    56      TInt AttachmentCount() const;
       
    57      const MCalRemoteAttachment& AttachmentL(
       
    58              TInt aIndex ) const;
       
    59      void RemoveAttachmentAtL(
       
    60              TInt aIndex );
       
    61      void RemoveAttachmentL(
       
    62              MCalRemoteAttachment& aAttachment );
       
    63      const RPointerArray<MCalRemoteAttachment>& Attachments() const;     
       
    64     
       
    65 private:
       
    66     CCalRemoteAttachmentInfo();
       
    67     void ConstructL();
       
    68 
       
    69 private:
       
    70     /// Own: Attachment array
       
    71     RPointerArray<MCalRemoteAttachment> iAttachments;     
       
    72     };
       
    73 
       
    74 #endif // CCALREMOTEATTACHMENTINFO_H
       
    75 
       
    76 // EOF
       
    77