home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2003 June
/
PCWorld_2003-06_cd.bin
/
KOMUNIK
/
MIRRORIT
/
SRC
/
SESSION.H
< prev
next >
Wrap
C/C++ Source or Header
|
1998-01-05
|
2KB
|
58 lines
// Session.h: interface for the CSession class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SESSION_H__031A8765_5442_11D1_AF0A_0000C0003048__INCLUDED_)
#define AFX_SESSION_H__031A8765_5442_11D1_AF0A_0000C0003048__INCLUDED_
#include "Url.h" // Added by ClassView
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CSession : public CObject
{
public:
BOOL m_Permanent;
BOOL m_Temporary;
BOOL m_Multiple;
CString m_Exclude;
CString m_NoProxy;
CString m_Password;
CString m_UserName;
UINT m_ProxyPort;
CString m_ProxyServer;
BOOL m_BProxy;
CTime m_TModifiedSince;
BOOL m_ModifiedSince;
CStringList m_MimeTypes;
BOOL m_FullName;
BOOL m_BNumberOfKBytes;
BOOL m_BNumberOfFiles;
BOOL m_BNumberOfLevels;
UINT m_NumberOfBytes;
UINT m_NumberOfLevels;
UINT m_NumberOfFiles;
CURL url;
int m_LocalURLs;
BOOL m_LongFileName;
int m_Mirror;
enum SESSION_TYPES {
SESSION_ONLYDOCUMENT = 0,
SESSION_SUBFOLDERS = 1
};
int type, maxdepth;
CSession(CString SessionName = "", CString BaseURL = "", CString Comment = "", CString Directory = "", int Mirror = 0, int LongFileName = 0, BOOL LocalURLs = 1, BOOL BNumberOfFiles = FALSE, UINT NumberOfFiles = 10000, BOOL BNumberOfLevels = FALSE, UINT NumberOfLevels = 1000, BOOL BNumberOfKBytes = FALSE, UINT NumberOfBytes = 104857600L, BOOL FullName = FALSE, CStringList * MimeTypes = NULL, BOOL ModifiedSince = FALSE, CTime * TModifiedSince = NULL, BOOL BProxy = FALSE, CString ProxyServer = "", int ProxyPort = 80, CString UserName = "", CString Password = "", CString NoProxy = "", CString Exclude = "", BOOL Multiple = TRUE, BOOL Permanent = FALSE, BOOL Temporary = TRUE);
CString m_Comment;
CString m_SessionName;
CString m_BaseURL;
CString m_Directory;
virtual ~CSession();
private:
CString GetPersonalFolder();
};
#endif // !defined(AFX_SESSION_H__031A8765_5442_11D1_AF0A_0000C0003048__INCLUDED_)