dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
cacheitemqueue.cpp
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 #include "cacheitemqueue.h"
28 
29 
30 namespace core {
31  CacheItemQueue::CacheItemQueue(const MapType::Types &Type, const Point &Pos, const QByteArray &Img, const int &Zoom)
32  {
33  type=Type;
34  pos=Pos;
35  img=Img;
36  zoom=Zoom;
37 
38  }
39 
41  {
42  return img;
43  }
44 
45  MapType::Types CacheItemQueue::GetMapType()
46  {
47  return type;
48  }
50  {
51  return pos;
52  }
53  void CacheItemQueue::SetImg(const QByteArray &value)
54  {
55  img=value;
56  }
57  void CacheItemQueue::SetMapType(const MapType::Types &value)
58  {
59  type=value;
60  }
62  {
63  pos=value;
64  }
65 
67  {
68  img=cSource.img;
69  pos=cSource.pos;
70  type=cSource.type;
71  zoom=cSource.zoom;
72  return *this;
73  }
75  {
76  bool b=(img==cSource.img)&& (pos==cSource.pos) && (type==cSource.type) && (zoom==cSource.zoom);
77  return b;
78  }
79 }
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()