landmarks/locationlandmarks/converter/inc/EPos_CPosLmParsedLmBuffer.h
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     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: Class for holding landmarks and landmark categories while parsing
       
    15 * a Landmark XML file to a landmark(s).
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPOSLMPARSEDLMBUFFER_H
       
    21 #define CPOSLMPARSEDLMBUFFER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <EPos_CPosLandmark.h>
       
    26 #include <EPos_CPosLandmarkCategory.h>
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  Class for holding landmarks and landmark categories while parsing
       
    32 * a Landmark XML file to a landmark(s).
       
    33 *
       
    34 */
       
    35 class CPosLmParsedLmBuffer : public CBase
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38 
       
    39         /**
       
    40         * Constructor.
       
    41         */
       
    42         static CPosLmParsedLmBuffer* NewLC(
       
    43         /* IN */    CPosLandmark& aLm,
       
    44         /* IN */    RPointerArray<CPosLandmarkCategory>& aLmCategories
       
    45         );
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         ~CPosLmParsedLmBuffer();
       
    51 
       
    52     public: // New functions
       
    53 
       
    54         /**
       
    55         * Retrieve the landmark of the buffer.
       
    56         *
       
    57         * @return A landmark.
       
    58         */
       
    59         CPosLandmark* Landmark() const;
       
    60 
       
    61         /**
       
    62         * Retrieve the landmark categories of the buffer.
       
    63         *
       
    64         * @return Landmark categories.
       
    65         */
       
    66         RPointerArray<CPosLandmarkCategory> Categories() const;
       
    67 
       
    68     private:
       
    69 
       
    70         /**
       
    71         * C++ default constructor.
       
    72         */
       
    73         CPosLmParsedLmBuffer();
       
    74 
       
    75         /**
       
    76         * Symbian 2nd phase constructor.
       
    77         */
       
    78         void ConstructL(
       
    79             CPosLandmark& aLm,
       
    80             RPointerArray<CPosLandmarkCategory>& aLmCategories
       
    81         );
       
    82 
       
    83         // By default, prohibit copy constructor
       
    84         CPosLmParsedLmBuffer( const CPosLmParsedLmBuffer& );
       
    85         // Prohibit assigment operator
       
    86         CPosLmParsedLmBuffer& operator= ( const CPosLmParsedLmBuffer& );
       
    87 
       
    88     private:
       
    89 
       
    90         CPosLandmark*                       iLandmark;
       
    91         RPointerArray<CPosLandmarkCategory> iLandmarkCategories;
       
    92 
       
    93     };
       
    94 
       
    95 #endif      // CPOSLMPARSEDLMBUFFER_H
       
    96 
       
    97 // End of File