dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
cacheitemqueue.h
Go to the documentation of this file.
1 
13 /*
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * for more details.
23 *
24 * You should have received a copy of the GNU General Public License along
25 * with this program; if not, see <http://www.gnu.org/licenses/>
26 */
27 #ifndef CACHEITEMQUEUE_H
28 #define CACHEITEMQUEUE_H
29 
30 #include "maptype.h"
31 #include "point.h"
32 #include <QByteArray>
33 
34 
35 
36 namespace core {
38  {
39  public:
40  CacheItemQueue(const MapType::Types &Type,const core::Point &Pos,const QByteArray &Img,const int &Zoom);
43  {
44  img=cSource.img;
45  pos=cSource.pos;
46  type=cSource.type;
47  zoom=cSource.zoom;
48  }
49  CacheItemQueue& operator= (const CacheItemQueue &cSource);
50  bool operator== (const CacheItemQueue &cSource);
51  void SetMapType(const MapType::Types &value);
52  void SetPosition(const core::Point &value);
53  void SetImg(const QByteArray &value);
54  MapType::Types GetMapType();
56  QByteArray GetImg();
57  int GetZoom(){return zoom;};
58  void SetZoom(const int &value) {zoom=value;};
59  private:
60 
61 
62  MapType::Types type;
63  core::Point pos;
64  QByteArray img;
65  int zoom;
66  };
67 
68 }
69 #endif // CACHEITEMQUEUE_H
void SetImg(const QByteArray &value)
void SetMapType(const MapType::Types &value)
core::Point GetPosition()
CacheItemQueue & operator=(const CacheItemQueue &cSource)
bool operator==(const CacheItemQueue &cSource)
void SetPosition(const core::Point &value)
MapType::Types GetMapType()
void SetZoom(const int &value)
CacheItemQueue(const CacheItemQueue &cSource)