~vcs-imports-ii/znc/master

« back to all changes in this revision

Viewing changes to DCCSock.h

  • Committer: Uli Schlachter
  • Date: 2011-04-03 09:50:44 UTC
  • Revision ID: git-v1:3f24f28736304b747ea2fbb5dcf48796011b546c
Stop including FileUtils.h in any header

This causes every piece of code which wants to use CFile or CDir to have to
include FileUtils.h. This causes quite some noise.

Signed-off-by: Uli Schlachter <psychon@znc.in>

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#define _DCCSOCK_H
11
11
 
12
12
#include "zncconfig.h"
13
 
#include "FileUtils.h"
14
13
#include "Socket.h"
15
14
 
16
15
// Forward Declarations
17
16
class CUser;
 
17
class CFile;
18
18
// !Forward Declarations
19
19
 
20
20
class CDCCSock : public CZNCSock {
32
32
        void SendPacket();
33
33
        virtual Csock* GetSockObj(const CString& sHost, unsigned short uPort);
34
34
        CFile* OpenFile(bool bWrite = true);
35
 
        bool Seek(unsigned int uPos) {
36
 
                if (m_pFile) {
37
 
                        if (m_pFile->Seek(uPos)) {
38
 
                                m_uBytesSoFar = uPos;
39
 
                                return true;
40
 
                        }
41
 
                }
42
 
 
43
 
                return false;
44
 
        }
 
35
        bool Seek(unsigned int uPos);
45
36
 
46
37
        // Setters
47
38
        void SetRemoteIP(const CString& s) { m_sRemoteIP = s; }