100 lines
1.9 KiB
C++
100 lines
1.9 KiB
C++
#ifndef _HTTP_ENTRYITEM_HPP_
|
|
#define _HTTP_ENTRYITEM_HPP_
|
|
#ifndef _COMMON_STRING_HPP_
|
|
#include <common/string.hpp>
|
|
#endif
|
|
#ifndef _COMMON_BLOCK_HPP_
|
|
#include <common/block.hpp>
|
|
#endif
|
|
|
|
class EntryItem
|
|
{
|
|
public:
|
|
EntryItem(void);
|
|
EntryItem(const EntryItem &entryItem);
|
|
EntryItem(const String &hostName,const String &pageName,const String &saveAs);
|
|
EntryItem &operator=(const EntryItem &entryItem);
|
|
BOOL operator==(const EntryItem &entryItem)const;
|
|
const String &hostName(void)const;
|
|
void hostName(const String &hostName);
|
|
const String &pageName(void)const;
|
|
void pageName(const String &pageName);
|
|
const String &saveAs(void)const;
|
|
void saveAs(const String &saveAs);
|
|
private:
|
|
String mHostName;
|
|
String mPageName;
|
|
String mSaveAs;
|
|
};
|
|
|
|
inline
|
|
EntryItem::EntryItem(void)
|
|
{
|
|
}
|
|
|
|
inline
|
|
EntryItem::EntryItem(const EntryItem &entryItem)
|
|
: mHostName(entryItem.hostName()), mPageName(entryItem.pageName()), mSaveAs(entryItem.saveAs())
|
|
{
|
|
}
|
|
|
|
inline
|
|
EntryItem::EntryItem(const String &hostName,const String &pageName,const String &saveAs)
|
|
: mHostName(hostName), mPageName(pageName), mSaveAs(saveAs)
|
|
{
|
|
}
|
|
|
|
inline
|
|
EntryItem &EntryItem::operator=(const EntryItem &entryItem)
|
|
{
|
|
hostName(entryItem.hostName());
|
|
pageName(entryItem.pageName());
|
|
saveAs(entryItem.saveAs());
|
|
return *this;
|
|
}
|
|
|
|
inline
|
|
BOOL EntryItem::operator==(const EntryItem &entryItem)const
|
|
{
|
|
return (hostName()==entryItem.hostName()&&
|
|
pageName()==entryItem.pageName()&&
|
|
saveAs()==entryItem.saveAs());
|
|
}
|
|
|
|
inline
|
|
const String &EntryItem::hostName(void)const
|
|
{
|
|
return mHostName;
|
|
}
|
|
|
|
inline
|
|
void EntryItem::hostName(const String &hostName)
|
|
{
|
|
mHostName=hostName;
|
|
}
|
|
|
|
inline
|
|
const String &EntryItem::pageName(void)const
|
|
{
|
|
return mPageName;
|
|
}
|
|
|
|
inline
|
|
void EntryItem::pageName(const String &pageName)
|
|
{
|
|
mPageName=pageName;
|
|
}
|
|
|
|
inline
|
|
const String &EntryItem::saveAs(void)const
|
|
{
|
|
return mSaveAs;
|
|
}
|
|
|
|
inline
|
|
void EntryItem::saveAs(const String &saveAs)
|
|
{
|
|
mSaveAs=saveAs;
|
|
}
|
|
#endif
|