libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::AvailableMapsModelMap Class Reference

Model item representing map in AvailableMapsModel. More...

#include <AvailableMapsModel.h>

+ Inheritance diagram for osmscout::AvailableMapsModelMap:

Public Member Functions

 AvailableMapsModelMap ()=default
 
 AvailableMapsModelMap (const AvailableMapsModelMap &o)=default
 
 AvailableMapsModelMap (const QString &name, const QList< QString > &path, const QString &description, const MapProvider &provider, uint64_t size, const QString &serverDirectory, const QDateTime &creation, int version)
 
QDateTime getCreation () const
 
MapProvider getProvider () const
 
QString getServerDirectory () const
 
uint64_t getSize () const
 
QString getSizeHuman () const
 
int getVersion () const
 
bool isDirectory () const override
 
AvailableMapsModelMapoperator= (const AvailableMapsModelMap &o)=default
 
 ~AvailableMapsModelMap () override=default
 
- Public Member Functions inherited from osmscout::AvailableMapsModelItem
 AvailableMapsModelItem ()=default
 
 AvailableMapsModelItem (const AvailableMapsModelItem &o)
 
 AvailableMapsModelItem (const QString &name, const QStringList &path, const QString &description)
 
QString getDescription () const
 
QString getName () const
 
QStringList getPath () const
 
bool isValid () const
 
AvailableMapsModelItemoperator= (const AvailableMapsModelItem &o)
 
 ~AvailableMapsModelItem () override=default
 

Properties

quint64 byteSize
 
QString serverDirectory
 
QString size
 
QDateTime time
 
int version {-1}
 
- Properties inherited from osmscout::AvailableMapsModelItem
QString description
 
QString name
 
QStringList path
 
bool valid {false}
 

Detailed Description

Model item representing map in AvailableMapsModel.

Constructor & Destructor Documentation

◆ AvailableMapsModelMap() [1/3]

osmscout::AvailableMapsModelMap::AvailableMapsModelMap ( )
default

◆ AvailableMapsModelMap() [2/3]

osmscout::AvailableMapsModelMap::AvailableMapsModelMap ( const QString &  name,
const QList< QString > &  path,
const QString &  description,
const MapProvider &  provider,
uint64_t  size,
const QString &  serverDirectory,
const QDateTime &  creation,
int  version 
)
inline

◆ AvailableMapsModelMap() [3/3]

osmscout::AvailableMapsModelMap::AvailableMapsModelMap ( const AvailableMapsModelMap o)
default

◆ ~AvailableMapsModelMap()

osmscout::AvailableMapsModelMap::~AvailableMapsModelMap ( )
overridedefault

Member Function Documentation

◆ getCreation()

QDateTime osmscout::AvailableMapsModelMap::getCreation ( ) const

◆ getProvider()

MapProvider osmscout::AvailableMapsModelMap::getProvider ( ) const

◆ getServerDirectory()

QString osmscout::AvailableMapsModelMap::getServerDirectory ( ) const

References serverDirectory.

◆ getSize()

uint64_t osmscout::AvailableMapsModelMap::getSize ( ) const

References size.

Referenced by osmscout::MapDownloadJob::expectedSize().

◆ getSizeHuman()

QString osmscout::AvailableMapsModelMap::getSizeHuman ( ) const

◆ getVersion()

int osmscout::AvailableMapsModelMap::getVersion ( ) const

References version.

◆ isDirectory()

bool osmscout::AvailableMapsModelMap::isDirectory ( ) const
inlineoverridevirtual

◆ operator=()

AvailableMapsModelMap& osmscout::AvailableMapsModelMap::operator= ( const AvailableMapsModelMap o)
default

Property Documentation

◆ byteSize

quint64 osmscout::AvailableMapsModelMap::byteSize
read

◆ serverDirectory

QString osmscout::AvailableMapsModelMap::serverDirectory
read

Referenced by getServerDirectory().

◆ size

QString osmscout::AvailableMapsModelMap::size
read

Referenced by getSize(), and getSizeHuman().

◆ time

QDateTime osmscout::AvailableMapsModelMap::time
read

◆ version

int osmscout::AvailableMapsModelMap::version {-1}
read

Referenced by getVersion().


The documentation for this class was generated from the following files: