map2d_widget
cacheitemqueue.h
Go to the documentation of this file.
1 
12 /*
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * for more details.
22 *
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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);
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 SetPosition(const core::Point &value)
Definition: cacheitemqueue.cpp:61
Types
Definition: maptype.h:39
void SetZoom(const int &value)
Definition: cacheitemqueue.h:58
Definition: accessmode.h:35
CacheItemQueue(const CacheItemQueue &cSource)
Definition: cacheitemqueue.h:42
void SetImg(const QByteArray &value)
Definition: cacheitemqueue.cpp:53
QByteArray GetImg()
Definition: cacheitemqueue.cpp:40
MapType::Types GetMapType()
Definition: cacheitemqueue.cpp:45
Definition: point.h:35
Definition: cacheitemqueue.h:37
core::Point GetPosition()
Definition: cacheitemqueue.cpp:49
void SetMapType(const MapType::Types &value)
Definition: cacheitemqueue.cpp:57
CacheItemQueue()
Definition: cacheitemqueue.h:41
bool operator==(const CacheItemQueue &cSource)
Definition: cacheitemqueue.cpp:74
int GetZoom()
Definition: cacheitemqueue.h:57
CacheItemQueue & operator=(const CacheItemQueue &cSource)
Definition: cacheitemqueue.cpp:66