Cupt
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
uri.hpp
Go to the documentation of this file.
00001 /**************************************************************************
00002 *   Copyright (C) 2010 by Eugene V. Lyubimkin                             *
00003 *                                                                         *
00004 *   This program is free software; you can redistribute it and/or modify  *
00005 *   it under the terms of the GNU General Public License                  *
00006 *   (version 3 or above) as published by the Free Software Foundation.    *
00007 *                                                                         *
00008 *   This program is distributed in the hope that it will be useful,       *
00009 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00010 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00011 *   GNU General Public License for more details.                          *
00012 *                                                                         *
00013 *   You should have received a copy of the GNU GPL                        *
00014 *   along with this program; if not, write to the                         *
00015 *   Free Software Foundation, Inc.,                                       *
00016 *   51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA               *
00017 **************************************************************************/
00018 #ifndef CUPT_DOWNLOAD_URI_SEEN
00019 #define CUPT_DOWNLOAD_URI_SEEN
00020 
00022 
00023 #include <cupt/common.hpp>
00024 
00025 namespace cupt {
00026 
00027 namespace internal {
00028 
00029 struct UriData;
00030 
00031 }
00032 
00034 namespace download {
00035 
00037 class CUPT_API Uri
00038 {
00039     internal::UriData* __data;
00040  public:
00042 
00045     Uri(const string& uri);
00047 
00050     Uri(const Uri& other);
00052 
00056     Uri& operator=(const Uri& other);
00058     virtual ~Uri();
00059 
00061     string getProtocol() const;
00063     string getHost() const;
00065     string getOpaque() const;
00067     operator string() const;
00068 };
00069 
00070 }
00071 }
00072 
00073 #endif
00074 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator