summaryrefslogtreecommitdiffstats
path: root/fbreader/src/network/NetworkLink.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-07 23:30:05 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-07 23:30:05 +0900
commit17b259df9cb6b28779d4881b2b6c805ee2e48eea (patch)
tree5ed61937459cb7081089111b0242c01ec178f1f3 /fbreader/src/network/NetworkLink.h
parent1cba8bce178eb2d6719c6f7f21e2c9352c5513a6 (diff)
downloadtde-ebook-reader-17b259df9cb6b28779d4881b2b6c805ee2e48eea.tar.gz
tde-ebook-reader-17b259df9cb6b28779d4881b2b6c805ee2e48eea.zip
Rename to tde-ebook-reader
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'fbreader/src/network/NetworkLink.h')
-rw-r--r--fbreader/src/network/NetworkLink.h109
1 files changed, 0 insertions, 109 deletions
diff --git a/fbreader/src/network/NetworkLink.h b/fbreader/src/network/NetworkLink.h
deleted file mode 100644
index e0260b0..0000000
--- a/fbreader/src/network/NetworkLink.h
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
- * Copyright (C) 2008-2012 Geometer Plus <contact@geometerplus.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- * 02110-1301, USA.
- */
-
-#ifndef __NETWORKLINK_H__
-#define __NETWORKLINK_H__
-
-#include <string>
-#include <vector>
-#include <map>
-
-#include <shared_ptr.h>
-#include <ZLOptions.h>
-
-#include "NetworkItems.h"
-#include "atom/ATOMMetadata.h"
-
-class ZLNetworkRequest;
-
-class NetworkOperationData;
-class NetworkAuthenticationManager;
-
-class NetworkLink {
-
-public:
- static const std::string URL_MAIN;
- static const std::string URL_SEARCH;
- static const std::string URL_SIGN_IN;
- static const std::string URL_SIGN_OUT;
- static const std::string URL_SIGN_UP;
- static const std::string URL_TOPUP;
- static const std::string URL_RECOVER_PASSWORD;
-
-protected:
- NetworkLink(
- const std::string &siteName
- );
-
-public:
- virtual ~NetworkLink();
- std::string url(const std::string &urlId) const;
-
- void setTitle(const std::string& title);
- void setSummary(const std::string& summary);
- void setLanguage(const std::string& language);
- void setIcon(const std::string& icon);
- void setLinks(const std::map<std::string,std::string>& links);
- void setPredefinedId(const std::string& id);
- void setEnabled(bool enabled);
- void setUpdated(shared_ptr<ATOMUpdated> u);
-
- std::string getSiteName() const;
- std::string getTitle() const;
- std::string getSummary() const;
- std::string getLanguage() const;
- std::string getIcon() const;
- const std::map<std::string,std::string>& getLinks() const;
- std::string getPredefinedId() const;
- bool isEnabled() const;
- shared_ptr<ATOMUpdated> getUpdated() const;
-
- bool isPredefined() const;
-
- void loadFrom(const NetworkLink & link);
- void loadLinksFrom(const NetworkLink & link);
- void loadSummaryFrom(const NetworkLink & link);
-
-public:
- virtual shared_ptr<ZLNetworkRequest> simpleSearchData(NetworkOperationData &data, const std::string &pattern) const = 0;
- virtual shared_ptr<ZLNetworkRequest> advancedSearchData(NetworkOperationData &data, const std::string &titleAndSeries, const std::string &author, const std::string &tag, const std::string &annotation) const = 0;
- virtual shared_ptr<ZLNetworkRequest> resume(NetworkOperationData &data) const;
-
- virtual shared_ptr<NetworkAuthenticationManager> authenticationManager() const = 0;
- virtual shared_ptr<NetworkItem> libraryItem() const = 0;
-
- virtual void rewriteUrl(std::string &url, bool isUrlExternal = false) const = 0;
-
-private:
- const std::string mySiteName;
- std::string myTitle;
- std::string myIcon;
- std::string mySummary;
- std::string myLanguage;
- std::map<std::string,std::string> myLinks;
- std::string myPredefinedId;
- bool myEnabled;
- shared_ptr<ATOMUpdated> myUpdated;
-
-private: // disable copying
- NetworkLink(const NetworkLink &);
- const NetworkLink &operator = (const NetworkLink &);
-};
-
-#endif /* __NETWORKLINK_H__ */