email/imum/DomainApi/inc/ImumDomainApiImpl.h
branchRCL_3
changeset 60 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2006 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:  ImumDomainApiImpl.h
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_IMUMDOMAINAPIIMPL_H
       
    20 #define C_IMUMDOMAINAPIIMPL_H
       
    21 
       
    22 #include "ImumDomainApi.h"
       
    23 #include "ImumInternalApi.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CImumDaMailboxUtilitiesImpl;
       
    27 class CImumDaMailboxServicesImpl;
       
    28 
       
    29 
       
    30 NONSHARABLE_CLASS( CImumDomainApiImpl ) : public CImumDomainApi
       
    31     {
       
    32     public:  // Constructors and destructor
       
    33 
       
    34         /**
       
    35          * Create object from CImumDomainApiImpl
       
    36          *
       
    37          * @since S60 3.2
       
    38          * @param aMsvSession, session pointer.
       
    39          * @return, Constructed object
       
    40          */
       
    41         static CImumDomainApiImpl* NewL( CMsvSession* aMsvSession );
       
    42 
       
    43         /**
       
    44          * Creates object from CImumDomainApiImpl and leaves
       
    45          * it to cleanup stack
       
    46          *
       
    47          * @since S60 3.2
       
    48          * @param aMsvSession, session pointer.
       
    49          * @return, Constructed object
       
    50          */
       
    51         static CImumDomainApiImpl* NewLC( CMsvSession* aMsvSession );
       
    52 
       
    53         /**
       
    54         * Destructor
       
    55         * @since S60 3.2
       
    56         */
       
    57         virtual ~CImumDomainApiImpl();
       
    58 
       
    59     private:  // Constructors
       
    60 
       
    61         /**
       
    62          * Default constructor for CImumDomainApiImpl
       
    63          *
       
    64          * @since S60 3.2
       
    65          * @return, Constructed object
       
    66          */
       
    67         CImumDomainApiImpl();
       
    68 
       
    69         /**
       
    70          * Symbian 2-phase constructor
       
    71          * @since S60 3.2
       
    72          */
       
    73         void ConstructL( CMsvSession* aMsvSession );
       
    74 
       
    75     public:   // From class CImumDomainApi
       
    76 
       
    77         /**
       
    78          * Services to control mailboxes.
       
    79          *
       
    80          * @since S60 v3.2
       
    81          * @return Reference to mailbox services.
       
    82          */
       
    83         MImumDaMailboxServices& MailboxServicesL();
       
    84 
       
    85         /**
       
    86          * Utilities for using mailboxes.
       
    87          *
       
    88          * @since S60 v3.2
       
    89          * @return Reference to mailbox utilities.
       
    90          */
       
    91         MImumDaMailboxUtilities& MailboxUtilitiesL();
       
    92 
       
    93     private:
       
    94 
       
    95         // Owned: Pointer to internal api
       
    96         CImumInternalApi* iApi;
       
    97         // Owned: Pointer to domain api utilities
       
    98         CImumDaMailboxUtilitiesImpl* iDaMailboxUtilities;
       
    99         // Owned: Pointer to domain api services
       
   100         CImumDaMailboxServicesImpl* iDaMailboxServices;
       
   101     };
       
   102 
       
   103 
       
   104 
       
   105 #endif /* C_IMUMDOMAINAPIIMPL_H */