plugin/poi/landmarks/provider/inc/Provider.h
changeset 0 c316ab048e9d
equal deleted inserted replaced
-1:000000000000 0:c316ab048e9d
       
     1 /*
       
     2  * Name        : Provider.h
       
     3  * Description : 
       
     4  * Project     : This file is part of OpenMAR, an Open Mobile Augmented Reality browser
       
     5  * Website     : http://OpenMAR.org
       
     6  *
       
     7  * Copyright (c) 2010 David Caabeiro
       
     8  *
       
     9  * All rights reserved. This program and the accompanying materials are made available 
       
    10  * under the terms of the Eclipse Public License v1.0 which accompanies this 
       
    11  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
       
    12  *
       
    13  */
       
    14 
       
    15 #ifndef PROVIDER_H_
       
    16 #define PROVIDER_H_
       
    17 
       
    18 #include "POIProvider.h"
       
    19 #include "POIObject.h"
       
    20 
       
    21 #include "Loader.h"
       
    22 #include "Local.h"
       
    23 #include "Remote.h"
       
    24 
       
    25 /**
       
    26  * @brief Provider implementation for local and remote landmarks (lmx)
       
    27  */
       
    28 class CProvider : public OpenMAR::CPOIProvider, public MLandmarkLoaderObserver
       
    29 {
       
    30 public:
       
    31     static CProvider* NewL(const TDesC8& aProviderUri);
       
    32     ~CProvider();
       
    33 
       
    34 protected:
       
    35     CProvider();
       
    36     void ConstructL(const TDesC8& aProviderUri);
       
    37 
       
    38     // From MLandmarkLoaderObserver
       
    39     void LandmarkLoaderOpenedL(TInt aError);
       
    40     void LandmarkLoaderItemCreatedL(const CPosLandmark& aLandmark);
       
    41     void LandmarkLoaderItemUpdatedL(const CPosLandmark& aLandmark);
       
    42     void LandmarkLoaderItemDeletedL(const CPosLandmark& aLandmark);
       
    43 
       
    44 public:
       
    45     void RetrieveL(const TCoordinate& aCoordinate, TReal32 aRadius);
       
    46 
       
    47 private:
       
    48     MLandmarkLoader* iLoader;
       
    49 };
       
    50 
       
    51 #endif  // PROVIDER_H_