KGAPI2::StaticMapMarker

KGAPI2::StaticMapMarker Class Reference

#include <staticmapmarker.h>

Public Types

enum  LocationType { Undefined = -1, String, KABCAddress, KABCGeo }
 
enum  MarkerSize { Tiny, Small, Middle, Normal }
 

Public Member Functions

 StaticMapMarker ()
 
 StaticMapMarker (const QString &address, const QChar &label=QChar(), const MarkerSize size=Normal, const QColor &color=Qt::red)
 
 StaticMapMarker (const KContacts::Address &address, QChar label=QChar(), const MarkerSize size=Normal, const QColor &color=Qt::red)
 
 StaticMapMarker (const KContacts::Geo &address, QChar label=QChar(), const MarkerSize size=Normal, const QColor &color=Qt::red)
 
 StaticMapMarker (const QStringList &locations, QChar label=QChar(), const MarkerSize size=Normal, const QColor &color=Qt::red)
 
 StaticMapMarker (const KContacts::Address::List &locations, QChar label=QChar(), const MarkerSize size=Normal, const QColor &color=Qt::red)
 
 StaticMapMarker (const QList< KContacts::Geo > &locations, QChar label=QChar(), const MarkerSize size=Normal, const QColor &color=Qt::red)
 
 StaticMapMarker (const StaticMapMarker &other)
 
 ~StaticMapMarker ()
 
QColor color () const
 
bool isValid () const
 
QChar label () const
 
KContacts::Address::List locationsAddress () const
 
QList< KContacts::GeolocationsGeo () const
 
QStringList locationsString () const
 
LocationType locationType () const
 
StaticMapMarkeroperator= (const StaticMapMarker &other)
 
void setColor (const QColor &color)
 
void setLabel (QChar label)
 
void setLocation (const QString &location)
 
void setLocation (const KContacts::Address &location)
 
void setLocation (const KContacts::Geo &location)
 
void setLocations (const QStringList &locations)
 
void setLocations (const KContacts::Address::List &locations)
 
void setLocations (const QList< KContacts::Geo > &locations)
 
void setSize (const MarkerSize size)
 
MarkerSize size () const
 
QString toString () const
 

Detailed Description

Represents marker with defined label, color, size and markers.

Author
: Jan Grulich grulj[email protected][email protected][email protected]ail.c[email protected]om
Since
: 0.4

Definition at line 41 of file staticmapmarker.h.

Constructor & Destructor Documentation

StaticMapMarker::StaticMapMarker ( )

Constructs an empty marker.

Definition at line 66 of file staticmapmarker.cpp.

StaticMapMarker::StaticMapMarker ( const QString address,
const QChar label = QChar(),
const MarkerSize  size = Normal,
const QColor color = Qt::red 
)
explicit

Constructs a new marker.

Parameters
addressLocation in QString where marker will be visible
labelSpecifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker
sizeSpecifies the size of marker
colorColor of marker

Definition at line 71 of file staticmapmarker.cpp.

StaticMapMarker::StaticMapMarker ( const KContacts::Address address,
QChar  label = QChar(),
const MarkerSize  size = Normal,
const QColor color = Qt::red 
)
explicit

Constructs a new marker.

Parameters
addressLocation in KContacts::Address where marker will be visible
labelSpecifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker
sizeSpecifies the size of marker
colorColor of marker

Definition at line 83 of file staticmapmarker.cpp.

StaticMapMarker::StaticMapMarker ( const KContacts::Geo address,
QChar  label = QChar(),
const MarkerSize  size = Normal,
const QColor color = Qt::red 
)
explicit

Constructs a new marker.

Parameters
addressLocation in KContacts::Geo where marker will be visible
labelSpecifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker
sizeSpecifies the size of marker
colorColor of marker

Definition at line 95 of file staticmapmarker.cpp.

StaticMapMarker::StaticMapMarker ( const QStringList locations,
QChar  label = QChar(),
const MarkerSize  size = Normal,
const QColor color = Qt::red 
)
explicit

Constructs a new marker.

Parameters
locationsLocations as a QStringList where marker will be visible
labelSpecifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker
sizeSpecifies the size of marker
colorColor of marker

Definition at line 107 of file staticmapmarker.cpp.

StaticMapMarker::StaticMapMarker ( const KContacts::Address::List locations,
QChar  label = QChar(),
const MarkerSize  size = Normal,
const QColor color = Qt::red 
)
explicit

Constructs a new marker.

Parameters
locationsLocations in KContacts::Address where marker will be visible
labelSpecifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker
sizeSpecifies the size of marker
colorColor of marker

Definition at line 118 of file staticmapmarker.cpp.

StaticMapMarker::StaticMapMarker ( const QList< KContacts::Geo > &  locations,
QChar  label = QChar(),
const MarkerSize  size = Normal,
const QColor color = Qt::red 
)
explicit

Constructs a new marker.

Parameters
locationsLocations in KContacts::Geo where marker will be visible
labelSpecifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker
sizeSpecifies the size of marker
colorColor of marker

Definition at line 129 of file staticmapmarker.cpp.

StaticMapMarker::StaticMapMarker ( const StaticMapMarker other)

Copy constructor.

Definition at line 140 of file staticmapmarker.cpp.

StaticMapMarker::~StaticMapMarker ( )

Destructor.

Definition at line 145 of file staticmapmarker.cpp.

Member Function Documentation

QColor StaticMapMarker::color ( ) const

Returns color of marker.

Definition at line 155 of file staticmapmarker.cpp.

bool StaticMapMarker::isValid ( ) const

Returns if marker is valid.

It means that marker needs defined location

Definition at line 165 of file staticmapmarker.cpp.

QChar StaticMapMarker::label ( ) const

Returns label of marker.

Definition at line 170 of file staticmapmarker.cpp.

KContacts::Address::List StaticMapMarker::locationsAddress ( ) const

Returns locations in KContacts::Address.

Definition at line 202 of file staticmapmarker.cpp.

QList< KContacts::Geo > StaticMapMarker::locationsGeo ( ) const

Returns locations in KContacts::Geo.

Definition at line 224 of file staticmapmarker.cpp.

QStringList StaticMapMarker::locationsString ( ) const

Returns locations in QString.

Definition at line 180 of file staticmapmarker.cpp.

StaticMapMarker::LocationType StaticMapMarker::locationType ( ) const

Returns in which format is location saved.

Definition at line 150 of file staticmapmarker.cpp.

StaticMapMarker & StaticMapMarker::operator= ( const StaticMapMarker other)

Assignment operator.

Definition at line 311 of file staticmapmarker.cpp.

void StaticMapMarker::setColor ( const QColor color)

Sets color of marker.

Parameters
colorColor for marker

Definition at line 160 of file staticmapmarker.cpp.

void StaticMapMarker::setLabel ( QChar  label)

Sets label of marker.

Parameters
labelSpecifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker

Definition at line 175 of file staticmapmarker.cpp.

void StaticMapMarker::setLocation ( const QString location)

Sets one location for marker.

Parameters
locationLocation for marker in QString

Definition at line 185 of file staticmapmarker.cpp.

void StaticMapMarker::setLocation ( const KContacts::Address location)

Sets one location for marker.

Parameters
locationLocation for marker in KContacts::Address

Definition at line 207 of file staticmapmarker.cpp.

void StaticMapMarker::setLocation ( const KContacts::Geo location)

Sets one location for marker.

Parameters
locationLocation for marker in KContacts::Geo

Definition at line 229 of file staticmapmarker.cpp.

void StaticMapMarker::setLocations ( const QStringList locations)

Sets locations for marker.

Parameters
locationsLocations for marker in QString

Definition at line 194 of file staticmapmarker.cpp.

void StaticMapMarker::setLocations ( const KContacts::Address::List locations)

Sets locations for marker.

Parameters
locationsLocations for marker in KContacts::Address

Definition at line 216 of file staticmapmarker.cpp.

void StaticMapMarker::setLocations ( const QList< KContacts::Geo > &  locations)

Sets locations for marker.

Parameters
locationsLocations for marker in KContacts::Geo

Definition at line 238 of file staticmapmarker.cpp.

void StaticMapMarker::setSize ( const MarkerSize  size)

Sets size of marker.

Parameters
sizeSpecifies the size of marker

Definition at line 251 of file staticmapmarker.cpp.

StaticMapMarker::MarkerSize StaticMapMarker::size ( ) const

Returns size of marker.

Definition at line 246 of file staticmapmarker.cpp.

QString StaticMapMarker::toString ( ) const

Returns all locations and markers preferences in format to URL query.

Definition at line 256 of file staticmapmarker.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon May 25 2020 22:38:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.