phoneapp/phoneuiutils/inc/cphonelibrarycontainer.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Container for factory library handles.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CPHONELIBRARYCONTAINER_H
       
    19 #define __CPHONELIBRARYCONTAINER_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <e32base.h>
       
    23 #include <e32std.h>
       
    24 
       
    25 /**
       
    26 *  Container for factory library handles.
       
    27 *
       
    28 *  @since 4.0
       
    29 *
       
    30 */
       
    31 class CPhoneLibraryContainer : public CBase
       
    32     {    
       
    33     public:     // Construction / destruction
       
    34 
       
    35         /**
       
    36         * NewL function for creating the container.
       
    37         * @param None
       
    38         * @return None
       
    39         */
       
    40         IMPORT_C static CPhoneLibraryContainer* NewL();
       
    41 
       
    42         /**
       
    43         * Virtual Destructor
       
    44         * @param None
       
    45         * @return None
       
    46         */
       
    47         IMPORT_C virtual ~CPhoneLibraryContainer();
       
    48 
       
    49     public:     // New functions
       
    50 
       
    51         /**
       
    52         * Adds library handle to container. NOTE: Ownership of handle is 
       
    53         * moved to container! After calling that method given object isn't 
       
    54         * allowed to close or destroy.
       
    55         * @param Referece to library handle
       
    56         * @return None
       
    57         */
       
    58         IMPORT_C void AddLibraryL( const RLibrary& aLibraryHandle );
       
    59 
       
    60     private:  // Construction / destruction
       
    61 
       
    62         /**
       
    63         * Protected constructor.
       
    64         * @param None
       
    65         * @return None
       
    66         */
       
    67         CPhoneLibraryContainer();
       
    68 
       
    69     private: // Data
       
    70 
       
    71         RArray<RLibrary> iLibraries;
       
    72     };
       
    73 
       
    74 #endif      // __CPHONELIBRARYCONTAINER_H
       
    75 // End of File