• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeabc
 

tdeabc

  • tdeabc
  • vcard
  • include
VCardGeoValue.h
1 /*
2  This file is part of libvcard.
3  Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef GEOVALUE_H
22 #define GEOVALUE_H
23 
24 #include <VCardValue.h>
25 
26 namespace VCARD
27 {
28 
29 class KVCARD_EXPORT GeoValue : public Value
30 {
31  public:
32  GeoValue();
33  GeoValue(const GeoValue&);
34  GeoValue(const TQCString&);
35  GeoValue & operator = (GeoValue&);
36  GeoValue & operator = (const TQCString&);
37  bool operator ==(GeoValue&);
38  bool operator !=(GeoValue& x) {return !(*this==x);}
39  bool operator ==(const TQCString& s) {GeoValue a(s);return(*this==a);}
40  bool operator != (const TQCString& s) {return !(*this == s);}
41 
42  virtual ~GeoValue();
43  void parse() {if(!parsed_) _parse();parsed_=true;assembled_=false;}
44 
45  void assemble() {if(assembled_) return;parse();_assemble();assembled_=true;}
46 
47  void _parse();
48  void _assemble();
49  const char * className() const { return "GeoValue"; }
50 
51  GeoValue *clone();
52 
53  void setLatitude( float lat ) { latitude_ = lat; assembled_ = false; }
54  void setLongitude( float lon ) { longitude_ = lon; assembled_ = false; }
55 
56  float latitude() { parse(); return latitude_; }
57  float longitude() { parse(); return longitude_; }
58 
59  private:
60  float latitude_;
61  float longitude_;
62 };
63 
64 }
65 
66 #endif

tdeabc

Skip menu "tdeabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.1
This website is maintained by Timothy Pearson.