2
* This file is part of nzbget
4
* Copyright (C) 2007-2010 Andrei Prygounkov <hugbug@users.sourceforge.net>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
* $Date: 2010-01-29 10:34:44 +0100 (Fri, 29 Jan 2010) $
31
#include "DownloadInfo.h"
44
FileData(const char* szFilename);
46
const char* GetFilename() { return m_szFilename; }
47
long long GetSize() { return m_iSize; }
48
void SetSize(long long lSize) { m_iSize = lSize; }
49
time_t GetLastChange() { return m_tLastChange; }
50
void SetLastChange(time_t tLastChange) { m_tLastChange = tLastChange; }
53
typedef std::deque<FileData*> FileList;
55
bool m_bRequestedNZBDirScan;
56
int m_iNZBDirInterval;
62
void CheckIncomingNZBs(const char* szDirectory, const char* szCategory, bool bCheckStat);
63
void AddFileToQueue(const char* szFilename, const char* szCategory, NZBParameterList* pParameterList);
64
void ProcessIncomingFile(const char* szDirectory, const char* szBaseFilename, const char* szFullFilename, const char* szCategory);
65
bool CanProcessFile(const char* szFullFilename, bool bCheckStat);
71
void SetStepInterval(int iStepMSec) { m_iStepMSec = iStepMSec; }