Commit 803a3352 803a33529c3a992ff80994b446f669a8e987006b by Wojciech Polak

Updated to the current API 1.0

1 parent fb4ee3bd
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,9 +12,10 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _ADDRESS_H
......@@ -33,24 +34,24 @@ class Address
char buf[256];
protected:
address_t addr;
mu_address_t addr;
friend class Mailer;
public:
Address (const std::string&);
Address (const address_t);
Address (const mu_address_t);
~Address ();
size_t GetCount ();
bool IsGroup (size_t);
size_t getCount ();
bool isGroup (size_t);
std::string GetEmail (size_t);
std::string GetLocalPart (size_t);
std::string GetDomain (size_t);
std::string GetPersonal (size_t);
std::string GetComments (size_t);
std::string GetRoute (size_t);
std::string getEmail (size_t);
std::string getLocalPart (size_t);
std::string getDomain (size_t);
std::string getPersonal (size_t);
std::string getComments (size_t);
std::string getRoute (size_t);
// Address Exceptions
class EInval : public Exception {
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,13 +12,14 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _ERROR_H
#define _ERROR_H
#ifndef _MUCPP_ERROR_H
#define _MUCPP_ERROR_H
#include <iostream>
#include <string>
......@@ -30,25 +31,25 @@ namespace mailutils
class Exception
{
protected:
std::string method;
std::string msgerr;
std::string pmethod;
std::string pmsgerr;
public:
Exception (const std::string m, int s) {
method = m;
msgerr = mu_strerror (s);
pmethod = m;
pmsgerr = mu_strerror (s);
}
std::string Method () const {
return method;
std::string method () const {
return pmethod;
}
std::string MsgError () const {
return msgerr;
std::string msgError () const {
return pmsgerr;
}
};
}
#endif /* not _ERROR_H */
#endif /* not _MUCPP_ERROR_H */
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,13 +12,14 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _FILTER_H
#define _FILTER_H
#ifndef _MUCPP_FILTER_H
#define _MUCPP_FILTER_H
#include <iostream>
#include <mailutils/filter.h>
......@@ -33,13 +34,13 @@ class FilterStream : public Stream
Stream *input;
public:
void Create (Stream&, const std::string&, int, int);
void IconvCreate (Stream&, const std::string&,
void create (Stream&, const std::string&, int, int);
void iconvCreate (Stream&, const std::string&,
const std::string&, int,
enum mu_iconv_fallback_mode);
};
}
#endif // not _FILTER_H
#endif // not _MUCPP_FILTER_H
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,13 +12,14 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _HEADER_H
#define _HEADER_H
#ifndef _MUCPP_HEADER_H
#define _MUCPP_HEADER_H
#include <iostream>
#include <string>
......@@ -30,17 +31,17 @@ namespace mailutils
class Header
{
protected:
header_t hdr;
mu_header_t hdr;
public:
Header ();
Header (const header_t);
Header (const mu_header_t);
std::string GetValue (const std::string&);
std::string getValue (const std::string&);
std::string operator [] (const std::string&);
};
}
#endif // not _HEADER_H
#endif // not _MUCPP_HEADER_H
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,13 +12,14 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _ITERATOR_H
#define _ITERATOR_H
#ifndef _MUCPP_ITERATOR_H
#define _MUCPP_ITERATOR_H
#include <iostream>
#include <mailutils/iterator.h>
......@@ -30,25 +31,25 @@ namespace mailutils
class Iterator
{
protected:
iterator_t mu_iter;
mu_iterator_t mu_iter;
List* pList;
public:
Iterator (const List&);
Iterator (const iterator_t);
Iterator (const mu_iterator_t);
~Iterator ();
void Dup (Iterator*&, const Iterator&);
void First ();
void Next ();
void dup (Iterator*&, const Iterator&);
void first ();
void next ();
Iterator& operator ++ (int);
void Current (void**);
void* Current ();
bool IsDone ();
List& GetList ();
void current (void**);
void* current ();
bool isDone ();
List& getList ();
};
}
#endif // not _ITERATOR_H
#endif // not _MUCPP_ITERATOR_H
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,19 +12,20 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _LIST_H
#define _LIST_H
#ifndef _MUCPP_LIST_H
#define _MUCPP_LIST_H
#include <iostream>
#include <mailutils/list.h>
typedef int list_action_t (void*, void*);
typedef int (*list_comparator_t) (const void*, const void*);
typedef int mu_list_action_t (void*, void*);
typedef int (*mu_list_comparator_t) (const void*, const void*);
namespace mailutils
{
......@@ -32,37 +33,37 @@ namespace mailutils
class List
{
protected:
list_t mu_list;
mu_list_t mu_list;
friend class Iterator;
public:
List ();
List (const list_t);
List (const mu_list_t);
~List ();
void Append (void*);
void Prepend (void*);
void Insert (void*, void*);
void Remove (void*);
void Replace (void*, void*);
void append (void*);
void prepend (void*);
void insert (void*, void*, int);
void remove (void*);
void replace (void*, void*);
void Get (size_t, void**);
void* Get (size_t);
void get (size_t, void**);
void* get (size_t);
void* operator [] (size_t);
void ToArray (void**, size_t, size_t*);
void Locate (void*, void**);
void toArray (void**, size_t, size_t*);
void locate (void*, void**);
void Do (list_action_t*, void*);
list_comparator_t SetComparator (list_comparator_t);
void SetDestroyItem (void (*destoy_item) (void *));
void apply (mu_list_action_t*, void*);
mu_list_comparator_t setComparator (mu_list_comparator_t);
void setDestroyItem (void (*mu_destoy_item) (void *));
bool IsEmpty ();
size_t Count ();
bool isEmpty ();
size_t count ();
};
}
#endif // not _LIST_H
#endif // not _MUCPP_LIST_H
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,13 +12,14 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _MAILBOX_H
#define _MAILBOX_H
#ifndef _MUCPP_MAILBOX_H
#define _MUCPP_MAILBOX_H
#include <iostream>
#include <mailutils/mailbox.h>
......@@ -30,14 +31,14 @@ namespace mailutils
class MailboxBase
{
protected:
mailbox_t mbox;
mu_mailbox_t mbox;
public:
void Open (int);
void Close ();
void open (int);
void close ();
size_t MessagesCount ();
Message& GetMessage (size_t);
size_t messagesCount ();
Message& getMessage (size_t);
Message& operator [] (size_t);
};
......@@ -45,7 +46,7 @@ class Mailbox : public MailboxBase
{
public:
Mailbox (const std::string&);
Mailbox (const mailbox_t);
Mailbox (const mu_mailbox_t);
~Mailbox ();
};
......@@ -53,11 +54,11 @@ class MailboxDefault : public MailboxBase
{
public:
MailboxDefault (const std::string&);
MailboxDefault (const mailbox_t);
MailboxDefault (const mu_mailbox_t);
~MailboxDefault ();
};
}
#endif /* not _MAILBOX_H */
#endif /* not _MUCPP_MAILBOX_H */
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,13 +12,14 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _MAILCAP_H
#define _MAILCAP_H
#ifndef _MUCPP_MAILCAP_H
#define _MUCPP_MAILCAP_H
#include <iostream>
#include <mailutils/mailcap.h>
......@@ -38,10 +39,10 @@ class MailcapEntry
public:
MailcapEntry (mu_mailcap_entry_t);
size_t FieldsCount ();
std::string GetTypeField ();
std::string GetViewCommand ();
std::string GetField (size_t);
size_t fieldsCount ();
std::string getTypeField ();
std::string getViewCommand ();
std::string getField (size_t);
};
class Mailcap
......@@ -54,11 +55,11 @@ class Mailcap
Mailcap (const mu_mailcap_t);
~Mailcap ();
size_t GetCount ();
MailcapEntry& GetEntry (size_t);
size_t getCount ();
MailcapEntry& getEntry (size_t);
};
}
#endif // not _MAILCAP_H
#endif // not _MUCPP_MAILCAP_H
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,13 +12,14 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _MAILER_H
#define _MAILER_H
#ifndef _MUCPP_MAILER_H
#define _MUCPP_MAILER_H
#include <iostream>
#include <string>
......@@ -32,19 +33,19 @@ namespace mailutils
class Mailer
{
protected:
mailer_t mailer;
mu_mailer_t mailer;
public:
Mailer (const std::string&);
Mailer (const mailer_t);
Mailer (const mu_mailer_t);
~Mailer ();
void Open (int);
void Close ();
void SendMessage (const Message&, const Address&, const Address&);
void open (int);
void close ();
void sendMessage (const Message&, const Address&, const Address&);
};
}
#endif // not _MAILER_H
#endif // not _MUCPP_MAILER_H
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,9 +12,10 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#include <mailutils/cpp/address.h>
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,13 +12,14 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _MESSAGE_H
#define _MESSAGE_H
#ifndef _MUCPP_MESSAGE_H
#define _MUCPP_MESSAGE_H
#include <mailutils/message.h>
#include <mailutils/cpp/header.h>
......@@ -29,18 +30,18 @@ namespace mailutils
class Message
{
protected:
message_t msg;
mu_message_t msg;
friend class Mailer;
public:
Message ();
Message (const message_t);
Message (const mu_message_t);
Header& GetHeader ();
Header& getHeader ();
};
}
#endif // not _MESSAGE_H
#endif // not _MUCPP_MESSAGE_H
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,17 +12,19 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _POP3_H
#define _POP3_H
#ifndef _MUCPP_POP3_H
#define _MUCPP_POP3_H
#include <iostream>
#include <mailutils/pop3.h>
#include <mailutils/cpp/list.h>
#include <mailutils/cpp/iterator.h>
#include <mailutils/cpp/stream.h>
namespace mailutils
......@@ -39,34 +41,34 @@ class Pop3
Pop3 (const mu_pop3_t);
~Pop3 ();
void SetCarrier (const Stream&);
Stream& GetCarrier ();
void Connect ();
void Disconnect ();
void SetTimeout (int);
int GetTimeout ();
void setCarrier (const Stream&);
Stream& getCarrier ();
void connect ();
void disconnect ();
void setTimeout (int);
int getTimeout ();
void Stls ();
Iterator& Capa ();
void Dele (unsigned int);
size_t List (unsigned int);
Iterator& ListAll ();
void Noop ();
void Pass (const char*);
void Quit ();
Stream& Retr (unsigned int);
void Rset ();
void Stat (unsigned int*, size_t*);
Stream& Top (unsigned int, unsigned int);
void User (const char*);
void stls ();
Iterator& capa ();
void dele (unsigned int);
size_t list (unsigned int);
Iterator& listAll ();
void noop ();
void pass (const char*);
void quit ();
Stream& retr (unsigned int);
void rset ();
void stat (unsigned int*, size_t*);
Stream& top (unsigned int, unsigned int);
void user (const char*);
size_t ReadLine (char*, size_t);
size_t Response (char*, size_t);
void SendLine (const char*);
void Send ();
size_t readLine (char*, size_t);
size_t response (char*, size_t);
void sendLine (const char*);
void send ();
};
}
#endif // not _POP3_H
#endif // not _MUCPP_POP3_H
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,13 +12,14 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _STREAM_H
#define _STREAM_H
#ifndef _MUCPP_STREAM_H
#define _MUCPP_STREAM_H
#include <iostream>
#include <string>
......@@ -32,7 +33,7 @@ namespace mailutils
class Stream
{
protected:
stream_t stm;
mu_stream_t stm;
size_t readn;
size_t writen;
int wflags;
......@@ -56,26 +57,26 @@ class Stream
public:
Stream ();
Stream (Stream& s);
Stream (const stream_t);
Stream (const mu_stream_t);
~Stream ();
void Open ();
void Close ();
void SetWaitFlags (int);
void Wait (); // timeval is missing
void Wait (int); // timeval is missing
void Read (char*, size_t, off_t);
void Write (const std::string&, size_t, off_t);
void ReadLine (char*, size_t, off_t);
void SequentialReadLine (char*, size_t);
void SequentialWrite (const std::string&, size_t);
void Flush ();
void open ();
void close ();
void setWaitFlags (int);
void wait (); // timeval is missing
void wait (int); // timeval is missing
void read (char*, size_t, off_t);
void write (const std::string&, size_t, off_t);
void readLine (char*, size_t, off_t);
void sequentialReadLine (char*, size_t);
void sequentialWrite (const std::string&, size_t);
void flush ();
// Inlines
size_t GetReadn () const {
size_t getReadn () const {
return readn;
};
size_t GetWriten () const {
size_t getWriten () const {
return writen;
};
......@@ -124,5 +125,5 @@ class FilterProgStream : public Stream
}
#endif // not _STREAM_H
#endif // not _MUCPP_STREAM_H
......
/*
GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
......@@ -12,13 +12,14 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA
*/
#ifndef _URL_H
#define _URL_H
#ifndef _MUCPP_URL_H
#define _MUCPP_URL_H
#include <iostream>
#include <string>
......@@ -33,26 +34,26 @@ class Url
char buf[1024];
protected:
url_t url;
mu_url_t url;
public:
Url (const std::string&);
Url (const char*);
Url (const url_t);
Url (const mu_url_t);
~Url ();
void Parse ();
long GetPort ();
std::string GetScheme ();
std::string GetUser ();
std::string GetPasswd ();
std::string GetAuth ();
std::string GetHost ();
std::string GetPath ();
std::string GetQuery ();
void parse ();
long getPort ();
std::string getScheme ();
std::string getUser ();
std::string getPasswd ();
std::string getAuth ();
std::string getHost ();
std::string getPath ();
std::string getQuery ();
};
}
#endif // not _URL_H
#endif // not _MUCPP_URL_H
......