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

« back to all changes in this revision

Viewing changes to NNTPConnection.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:
2
2
 *  This file is part of nzbget
3
3
 *
4
4
 *  Copyright (C) 2004 Sven Henkel <sidddy@users.sourceforge.net>
5
 
 *  Copyright (C) 2007-2008 Andrei Prygounkov <hugbug@users.sourceforge.net>
 
5
 *  Copyright (C) 2007-2008 Andrey Prygunkov <hugbug@users.sourceforge.net>
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
8
8
 *  it under the terms of the GNU General Public License as published by
18
18
 *  along with this program; if not, write to the Free Software
19
19
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20
20
 *
21
 
 * $Revision: 203 $
22
 
 * $Date: 2008-08-05 23:48:26 +0200 (Di, 05 Aug 2008) $
 
21
 * $Revision: 634 $
 
22
 * $Date: 2013-04-17 22:34:15 +0200 (Wed, 17 Apr 2013) $
23
23
 *
24
24
 */
25
25
 
33
33
class NNTPConnection : public Connection
34
34
{
35
35
private:
36
 
        char*                                   m_szActiveGroup;
37
 
        char*                                   m_szLineBuf;
38
 
        bool                                    m_bAuthError;
 
36
        NewsServer*                     m_pNewsServer;
 
37
        char*                           m_szActiveGroup;
 
38
        char*                           m_szLineBuf;
 
39
        bool                            m_bAuthError;
39
40
 
40
 
        virtual bool                    DoConnect();
41
 
        virtual bool                    DoDisconnect();
42
 
        void                                    Clear();
43
 
        void                                    ReportErrorAnswer(const char* szMsgPrefix, const char* szAnswer);
 
41
        void                            Clear();
 
42
        void                            ReportErrorAnswer(const char* szMsgPrefix, const char* szAnswer);
 
43
        bool                            Authenticate();
 
44
        bool                            AuthInfoUser(int iRecur);
 
45
        bool                            AuthInfoPass(int iRecur);
44
46
 
45
47
public:
46
 
                                                        NNTPConnection(NewsServer* server);
47
 
        virtual                                 ~NNTPConnection();
48
 
        NewsServer*                             GetNewsServer() { return(NewsServer*)m_pNetAddress; }
49
 
        const char*                     Request(const char* req);
50
 
        bool                                    Authenticate();
51
 
        bool                                    AuthInfoUser(int iRecur = 0);
52
 
        bool                                    AuthInfoPass(int iRecur = 0);
53
 
        const char*                             JoinGroup(const char* grp);
54
 
        bool                                    GetAuthError() { return m_bAuthError; }
 
48
                                                NNTPConnection(NewsServer* pNewsServer);
 
49
        virtual                         ~NNTPConnection();
 
50
        virtual bool            Connect();
 
51
        virtual bool            Disconnect();
 
52
        NewsServer*                     GetNewsServer() { return m_pNewsServer; }
 
53
        const char*             Request(const char* req);
 
54
        const char*                     JoinGroup(const char* grp);
 
55
        bool                            GetAuthError() { return m_bAuthError; }
55
56
};
56
57
 
57
 
 
58
58
#endif
59
59