~ubuntu-branches/debian/experimental/nzbget/experimental

« back to all changes in this revision

Viewing changes to DiskState.h

  • Committer: Package Import Robot
  • Author(s): Andreas Moog
  • Date: 2013-07-18 14:50:28 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130718145028-qhxse81w1sj5w424
Tags: 11.0+dfsg-1
* New upstream release (Closes: #701896)
* Repackage original tarball to remove copies of jquery and twitter-
  bootstrap
* debian/watch: Update for new versioning scheme
* debian/patches: Remove all old patches, add one patch:
  - dont-embed-libraries.patch: Don't install embedded jquery and bootstrap 
    libraries
* debian/combat: Upgrade to debhelper combat 9
* debian/control:
  - Fix Vcs-Git field
  - Adjust debhelper version for combat level 9
  - Add jquery and bootstrap to depends for integrated webserver
  - Add python to recommends for post-processing scripts
  - Bump build-depends on libpar2-dev to support the cancel function
* debian/links:
  - Use the system jquery and bootstrap libraries
* debian/rules:
  - Add get-orig-source target to build modified upstream tarball
* Adjust sample nzbget.conf:
  - Only listen to 127.0.0.1 instead of 0.0.0.0
  - Use nzbget.conf as template for webui configuration
* Adjust sample nzbgetd init file:
  - Point to correct location of nzbget binary

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  This file is part of nzbget
3
3
 *
4
 
 *  Copyright (C) 2007-2009 Andrei Prygounkov <hugbug@users.sourceforge.net>
 
4
 *  Copyright (C) 2007-2013 Andrey Prygunkov <hugbug@users.sourceforge.net>
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
17
17
 *  along with this program; if not, write to the Free Software
18
18
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19
19
 *
20
 
 * $Revision: 352 $
21
 
 * $Date: 2009-09-22 22:40:40 +0200 (Tue, 22 Sep 2009) $
 
20
 * $Revision: 658 $
 
21
 * $Date: 2013-04-30 22:12:07 +0200 (Tue, 30 Apr 2013) $
22
22
 *                                                          
23
23
 */
24
24
 
39
39
        void                            SaveFileQueue(DownloadQueue* pDownloadQueue, FileQueue* pFileQueue, FILE* outfile);
40
40
        bool                            LoadFileQueue(DownloadQueue* pDownloadQueue, FileQueue* pFileQueue, FILE* infile, int iFormatVersion);
41
41
        void                            SavePostQueue(DownloadQueue* pDownloadQueue, FILE* outfile);
42
 
        bool                            LoadPostQueue(DownloadQueue* pDownloadQueue, FILE* infile);
 
42
        bool                            LoadPostQueue(DownloadQueue* pDownloadQueue, FILE* infile, int iFormatVersion);
43
43
        bool                            LoadOldPostQueue(DownloadQueue* pDownloadQueue);
 
44
        void                            SaveUrlQueue(DownloadQueue* pDownloadQueue, FILE* outfile);
 
45
        bool                            LoadUrlQueue(DownloadQueue* pDownloadQueue, FILE* infile, int iFormatVersion);
 
46
        void                            SaveUrlInfo(UrlInfo* pUrlInfo, FILE* outfile);
 
47
        bool                            LoadUrlInfo(UrlInfo* pUrlInfo, FILE* infile, int iFormatVersion);
44
48
        void                            SaveHistory(DownloadQueue* pDownloadQueue, FILE* outfile);
45
 
        bool                            LoadHistory(DownloadQueue* pDownloadQueue, FILE* infile);
 
49
        bool                            LoadHistory(DownloadQueue* pDownloadQueue, FILE* infile, int iFormatVersion);
46
50
        int                                     FindNZBInfoIndex(DownloadQueue* pDownloadQueue, NZBInfo* pNZBInfo);
47
51
 
48
52
public:
52
56
        bool                            LoadDownloadQueue(DownloadQueue* pDownloadQueue);
53
57
        bool                            SaveFile(FileInfo* pFileInfo);
54
58
        bool                            LoadArticles(FileInfo* pFileInfo);
55
 
        bool                            DiscardDownloadQueue();
 
59
        void                            DiscardDownloadQueue();
56
60
        bool                            DiscardFile(FileInfo* pFileInfo);
57
61
        void                            CleanupTempDir(DownloadQueue* pDownloadQueue);
58
62
};