KGAPI2::StaticMapPath
#include <staticmappath.h>
Public Types | |
enum | LocationType { Undefined = -1 , String , KABCAddress , KABCGeo } |
Detailed Description
Represents path with defined locations, weight, color and color for filled area.
- Since
- 0.4
Definition at line 26 of file staticmappath.h.
Member Enumeration Documentation
◆ LocationType
enum KGAPI2::StaticMapPath::LocationType |
Definition at line 29 of file staticmappath.h.
Constructor & Destructor Documentation
◆ StaticMapPath() [1/5]
|
explicit |
Constructs an empty path.
Definition at line 50 of file staticmappath.cpp.
◆ StaticMapPath() [2/5]
|
explicit |
Constructs a new path.
- Parameters
-
locations The path locations in QString weight The thickness of the path in pixels color The color of the path fillColor The color of filled area
Definition at line 60 of file staticmappath.cpp.
◆ StaticMapPath() [3/5]
|
explicit |
Constructs a new path.
- Parameters
-
locations The path locations in KContacts::Address weight The thickness of the path in pixels color Color of the path fillColor The color of filled area
Definition at line 70 of file staticmappath.cpp.
◆ StaticMapPath() [4/5]
|
explicit |
Constructs a new path.
- Parameters
-
locations The path locations in KContacts::Geo weight The thickness of the path in pixels color The color of the path fillColor The color of filled area
Definition at line 80 of file staticmappath.cpp.
◆ StaticMapPath() [5/5]
StaticMapPath::StaticMapPath | ( | const StaticMapPath & | other | ) |
Copy constructor.
Definition at line 55 of file staticmappath.cpp.
◆ ~StaticMapPath()
StaticMapPath::~StaticMapPath | ( | ) |
Destructor.
Definition at line 90 of file staticmappath.cpp.
Member Function Documentation
◆ color()
|
nodiscard |
Returns the color of path.
Definition at line 100 of file staticmappath.cpp.
◆ fillColor()
|
nodiscard |
Returns the color of filled area.
Definition at line 115 of file staticmappath.cpp.
◆ isValid()
bool StaticMapPath::isValid | ( | ) | const |
Returns whether the path is valid.
This means that path has at least two locations
Definition at line 110 of file staticmappath.cpp.
◆ locationsAddress()
|
nodiscard |
Returns locations in KContacts::Address.
Returns empty list if is not defined
Definition at line 138 of file staticmappath.cpp.
◆ locationsGeo()
|
nodiscard |
Returns locations in KContacts::Geo.
Returns empty list if is not defined
Definition at line 151 of file staticmappath.cpp.
◆ locationsString()
|
nodiscard |
Returns locations in QString.
Returns empty list if is not defined
Definition at line 125 of file staticmappath.cpp.
◆ locationType()
|
nodiscard |
Location type.
Definition at line 95 of file staticmappath.cpp.
◆ operator=()
StaticMapPath & StaticMapPath::operator= | ( | const StaticMapPath & | other | ) |
Assignment operator.
Definition at line 213 of file staticmappath.cpp.
◆ setColor()
void StaticMapPath::setColor | ( | const QColor & | color | ) |
Sets color of the path.
- Parameters
-
color Color for path
Definition at line 105 of file staticmappath.cpp.
◆ setFillColor()
void StaticMapPath::setFillColor | ( | const QColor & | color | ) |
Sets color for filled area in path.
- Parameters
-
color The color for filled area
Definition at line 120 of file staticmappath.cpp.
◆ setLocations() [1/3]
void StaticMapPath::setLocations | ( | const KContacts::Address::List & | locations | ) |
Sets locations for path.
- Parameters
-
locations Locations for path in KContacts::Address
Definition at line 143 of file staticmappath.cpp.
◆ setLocations() [2/3]
void StaticMapPath::setLocations | ( | const QList< KContacts::Geo > & | locations | ) |
Sets locations for path.
- Parameters
-
locations Locations for path in KContacts::Geo
Definition at line 156 of file staticmappath.cpp.
◆ setLocations() [3/3]
void StaticMapPath::setLocations | ( | const QStringList & | locations | ) |
Sets locations for path.
- Parameters
-
locations Locations for path in QString
Definition at line 130 of file staticmappath.cpp.
◆ setWeight()
void StaticMapPath::setWeight | ( | const quint8 | weight | ) |
Sets weight of the path.
- Parameters
-
weight The thickness of the path in pixels
Definition at line 208 of file staticmappath.cpp.
◆ toString()
|
nodiscard |
Returns all locations and path preferences in format to URL query.
Definition at line 164 of file staticmappath.cpp.
◆ weight()
|
nodiscard |
Returns weight of the path.
Definition at line 203 of file staticmappath.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.