KGAPI2::StaticMapMarker
#include <staticmapmarker.h>
Public Types | |
enum | LocationType { Undefined = -1 , String , KABCAddress , KABCGeo } |
enum | MarkerSize { Tiny , Small , Middle , Normal } |
Detailed Description
Represents marker with defined label, color, size and markers.
- Since
- : 0.4
Definition at line 25 of file staticmapmarker.h.
Member Enumeration Documentation
◆ LocationType
enum KGAPI2::StaticMapMarker::LocationType |
Definition at line 30 of file staticmapmarker.h.
◆ MarkerSize
enum KGAPI2::StaticMapMarker::MarkerSize |
Definition at line 28 of file staticmapmarker.h.
Constructor & Destructor Documentation
◆ StaticMapMarker() [1/8]
StaticMapMarker::StaticMapMarker | ( | ) |
Constructs an empty marker.
Definition at line 50 of file staticmapmarker.cpp.
◆ StaticMapMarker() [2/8]
|
explicit |
Constructs a new marker.
- Parameters
-
address Location in QString where marker will be visible label Specifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker size Specifies the size of marker color Color of marker
Definition at line 55 of file staticmapmarker.cpp.
◆ StaticMapMarker() [3/8]
|
explicit |
Constructs a new marker.
- Parameters
-
address Location in KContacts::Address where marker will be visible label Specifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker size Specifies the size of marker color Color of marker
Definition at line 67 of file staticmapmarker.cpp.
◆ StaticMapMarker() [4/8]
|
explicit |
Constructs a new marker.
- Parameters
-
address Location in KContacts::Geo where marker will be visible label Specifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker size Specifies the size of marker color Color of marker
Definition at line 79 of file staticmapmarker.cpp.
◆ StaticMapMarker() [5/8]
|
explicit |
Constructs a new marker.
- Parameters
-
locations Locations as a QStringList where marker will be visible label Specifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker size Specifies the size of marker color Color of marker
Definition at line 91 of file staticmapmarker.cpp.
◆ StaticMapMarker() [6/8]
|
explicit |
Constructs a new marker.
- Parameters
-
locations Locations in KContacts::Address where marker will be visible label Specifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker size Specifies the size of marker color Color of marker
Definition at line 101 of file staticmapmarker.cpp.
◆ StaticMapMarker() [7/8]
|
explicit |
Constructs a new marker.
- Parameters
-
locations Locations in KContacts::Geo where marker will be visible label Specifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker size Specifies the size of marker color Color of marker
Definition at line 111 of file staticmapmarker.cpp.
◆ StaticMapMarker() [8/8]
StaticMapMarker::StaticMapMarker | ( | const StaticMapMarker & | other | ) |
Copy constructor.
Definition at line 121 of file staticmapmarker.cpp.
◆ ~StaticMapMarker()
StaticMapMarker::~StaticMapMarker | ( | ) |
Destructor.
Definition at line 126 of file staticmapmarker.cpp.
Member Function Documentation
◆ color()
|
nodiscard |
Returns color of marker.
Definition at line 136 of file staticmapmarker.cpp.
◆ isValid()
|
nodiscard |
Returns if marker is valid.
It means that marker needs defined location
Definition at line 146 of file staticmapmarker.cpp.
◆ label()
|
nodiscard |
Returns label of marker.
Definition at line 151 of file staticmapmarker.cpp.
◆ locationsAddress()
|
nodiscard |
Returns locations in KContacts::Address.
Definition at line 183 of file staticmapmarker.cpp.
◆ locationsGeo()
|
nodiscard |
Returns locations in KContacts::Geo.
Definition at line 205 of file staticmapmarker.cpp.
◆ locationsString()
|
nodiscard |
Returns locations in QString.
Definition at line 161 of file staticmapmarker.cpp.
◆ locationType()
|
nodiscard |
Returns in which format is location saved.
Definition at line 131 of file staticmapmarker.cpp.
◆ operator=()
StaticMapMarker & StaticMapMarker::operator= | ( | const StaticMapMarker & | other | ) |
Assignment operator.
Definition at line 288 of file staticmapmarker.cpp.
◆ setColor()
void StaticMapMarker::setColor | ( | const QColor & | color | ) |
Sets color of marker.
- Parameters
-
color Color for marker
Definition at line 141 of file staticmapmarker.cpp.
◆ setLabel()
void StaticMapMarker::setLabel | ( | QChar | label | ) |
Sets label of marker.
- Parameters
-
label Specifies a single uppercase alphanumeric character from set {A-Z, 0-9} which will be displayed in the marker
Definition at line 156 of file staticmapmarker.cpp.
◆ setLocation() [1/3]
void StaticMapMarker::setLocation | ( | const KContacts::Address & | location | ) |
Sets one location for marker.
- Parameters
-
location Location for marker in KContacts::Address
Definition at line 188 of file staticmapmarker.cpp.
◆ setLocation() [2/3]
void StaticMapMarker::setLocation | ( | const KContacts::Geo & | location | ) |
Sets one location for marker.
- Parameters
-
location Location for marker in KContacts::Geo
Definition at line 210 of file staticmapmarker.cpp.
◆ setLocation() [3/3]
void StaticMapMarker::setLocation | ( | const QString & | location | ) |
Sets one location for marker.
Definition at line 166 of file staticmapmarker.cpp.
◆ setLocations() [1/3]
void StaticMapMarker::setLocations | ( | const KContacts::Address::List & | locations | ) |
Sets locations for marker.
- Parameters
-
locations Locations for marker in KContacts::Address
Definition at line 197 of file staticmapmarker.cpp.
◆ setLocations() [2/3]
void StaticMapMarker::setLocations | ( | const QList< KContacts::Geo > & | locations | ) |
Sets locations for marker.
- Parameters
-
locations Locations for marker in KContacts::Geo
Definition at line 219 of file staticmapmarker.cpp.
◆ setLocations() [3/3]
void StaticMapMarker::setLocations | ( | const QStringList & | locations | ) |
Sets locations for marker.
- Parameters
-
locations Locations for marker in QString
Definition at line 175 of file staticmapmarker.cpp.
◆ setSize()
void StaticMapMarker::setSize | ( | const MarkerSize | size | ) |
Sets size of marker.
- Parameters
-
size Specifies the size of marker
Definition at line 232 of file staticmapmarker.cpp.
◆ size()
|
nodiscard |
Returns size of marker.
Definition at line 227 of file staticmapmarker.cpp.
◆ toString()
|
nodiscard |
Returns all locations and markers preferences in format to URL query.
Definition at line 237 of file staticmapmarker.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.