Added MapTileRequest files
authorSami Rämö <sami.ramo@ixonos.com>
Mon, 3 May 2010 12:16:22 +0000 (15:16 +0300)
committerSami Rämö <sami.ramo@ixonos.com>
Mon, 3 May 2010 12:16:22 +0000 (15:16 +0300)
src/map/maptilerequest.cpp [new file with mode: 0644]
src/map/maptilerequest.h [new file with mode: 0644]

diff --git a/src/map/maptilerequest.cpp b/src/map/maptilerequest.cpp
new file mode 100644 (file)
index 0000000..08ade1f
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+    Situare - A location system for Facebook
+    Copyright (C) 2010  Ixonos Plc. Authors:
+
+        Sami Rämö - sami.ramo@ixonos.com
+
+    Situare is free software; you can redistribute it and/or
+    modify it under the terms of the GNU General Public License
+    version 2 as published by the Free Software Foundation.
+
+    Situare is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with Situare; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
+    USA.
+*/
+
+#include <QDebug>
+
+#include "maptilerequest.h"
+
+MapTileRequest::MapTileRequest(QUrl url)
+    : cacheChecked(false)
+    , url(url)
+{
+    qDebug() << __PRETTY_FUNCTION__;
+}
diff --git a/src/map/maptilerequest.h b/src/map/maptilerequest.h
new file mode 100644 (file)
index 0000000..2c8c99c
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+    Situare - A location system for Facebook
+    Copyright (C) 2010  Ixonos Plc. Authors:
+
+        Sami Rämö - sami.ramo@ixonos.com
+
+    Situare is free software; you can redistribute it and/or
+    modify it under the terms of the GNU General Public License
+    version 2 as published by the Free Software Foundation.
+
+    Situare is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with Situare; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
+    USA.
+*/
+
+
+#ifndef MAPTILEREQUEST_H
+#define MAPTILEREQUEST_H
+
+#include <QUrl>
+
+/**
+* @brief Map tile request
+*
+* @author Sami Rämö sami.ramo@ixonos.com
+*/
+class MapTileRequest
+{
+public:
+    /**
+    * @brief Constructor
+    *
+    * Does set cacheChecked to false
+    *
+    * @param url URL of the requested image
+    */
+    MapTileRequest(QUrl url);
+
+/*******************************************************************************
+ * DATA MEMBERS
+ ******************************************************************************/
+public:
+    bool cacheChecked; ///< Is this request already checked from the cache
+    QUrl url; ///< URL
+};
+
+#endif // MAPTILEREQUEST_H