diff -r 000000000000 -r c316ab048e9d plugin/poi/geonames/provider/inc/Entry.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugin/poi/geonames/provider/inc/Entry.h Fri Jun 25 12:50:05 2010 +0200 @@ -0,0 +1,66 @@ +/* + * Name : Entry.h + * Description : Encapsulates a findNearbyWikipedia entry + * Project : This file is part of OpenMAR, an Open Mobile Augmented Reality browser + * Website : http://OpenMAR.org + * + * Copyright (c) 2010 David Caabeiro + * + * All rights reserved. This program and the accompanying materials are made available + * under the terms of the Eclipse Public License v1.0 which accompanies this + * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html + * + */ + +#ifndef ENTRY_H_ +#define ENTRY_H_ + +#include +#include + +class CEntry : public CBase +{ +public: + static CEntry* NewL(); + ~CEntry(); + +protected: + CEntry(); + void ConstructL(); + +public: + void Reset(); + + void EnterState(const TDesC8& aTag); + void ExitState(); + void FeedState(const TDesC8& aBytes); + +// TBool IsValid() const; + +protected: + +private: + enum TState { + EUnknown, + ETitle, + ESummary, +// EFeature, + EElevation, + ELat, + ELng, + EWikipediaUrl + } iState; + +//private: +public: + // Limits should be defined by provider (geonames.org) + TBuf8 iTitle; + TBuf8 iSummary; +// TBuf8 iFeature; + TBuf8 iElevation; + TBuf8 iLat; + TBuf8 iLng; + TBuf8 iWikipediaUrl; +}; + +#endif // ENTRY_H_