Changeset View
Changeset View
Standalone View
Standalone View
src/publictransport/backends/abstractbackend.h
Show All 33 Lines | |||||
34 | /** Abstract base class for transport provider backends. */ | 34 | /** Abstract base class for transport provider backends. */ | ||
35 | class AbstractBackend | 35 | class AbstractBackend | ||
36 | { | 36 | { | ||
37 | Q_GADGET | 37 | Q_GADGET | ||
38 | public: | 38 | public: | ||
39 | AbstractBackend(); | 39 | AbstractBackend(); | ||
40 | virtual ~AbstractBackend(); | 40 | virtual ~AbstractBackend(); | ||
41 | 41 | | |||
42 | /** Identifer for this backend. | 42 | /** Identifier for this backend. | ||
43 | * Use e.g. for distinguishing backend-specific cache locations etc. | 43 | * Use e.g. for distinguishing backend-specific cache locations etc. | ||
44 | */ | 44 | */ | ||
45 | QString backendId() const; | 45 | QString backendId() const; | ||
46 | void setBackendId(const QString &id); | 46 | void setBackendId(const QString &id); | ||
47 | 47 | | |||
48 | /** Checks if this location has been filtered by the network configuration. */ | 48 | /** Checks if this location has been filtered by the network configuration. */ | ||
49 | bool isLocationExcluded(const Location &loc) const; | 49 | bool isLocationExcluded(const Location &loc) const; | ||
50 | /** Same as the above but just checking one specific geo coordinate. */ | 50 | /** Same as the above but just checking one specific geo coordinate. */ | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |