~haggai-eran/nux/rtl-rebased

« back to all changes in this revision

Viewing changes to NuxCore/FileManager/NFileManagerWindows.h

  • Committer: Jay Taoko
  • Date: 2011-10-21 23:49:15 UTC
  • mfrom: (508.1.2 nux-20)
  • Revision ID: jay.taoko@canonical.com-20111021234915-hnzakb5ndebica8i
* Removed custom Nux types: t_u32, t_s32, t_bool, ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    NWindowsSerialFileReader (HANDLE InHandle, LogOutputDevice &InError);
37
37
    ~NWindowsSerialFileReader();
38
38
 
39
 
    virtual bool Precache (t_int PrecacheOffset, t_int PrecacheSize);
40
 
    virtual t_s64 Seek (t_s64 InPos, NSerializer::SeekPos seekpos);
41
 
    virtual t_s64 Tell();
42
 
    virtual t_s64 GetFileSize();
 
39
    virtual bool Precache (int PrecacheOffset, int PrecacheSize);
 
40
    virtual long long Seek (long long InPos, NSerializer::SeekPos seekpos);
 
41
    virtual long long Tell();
 
42
    virtual long long GetFileSize();
43
43
    virtual bool Close();
44
 
    virtual void SerializeFinal (void *V, t_s64 Length);
 
44
    virtual void SerializeFinal (void *V, long long Length);
45
45
    virtual bool isReader()
46
46
    {
47
47
      return true;
54
54
  protected:
55
55
    HANDLE              m_FileHandle;
56
56
    LogOutputDevice &m_Error;
57
 
    t_s64               m_FileSize;
58
 
    t_s64               m_FilePos;
59
 
    t_s64               m_BufferBase;
60
 
    t_int               m_BufferCount;
 
57
    long long               m_FileSize;
 
58
    long long               m_FilePos;
 
59
    long long               m_BufferBase;
 
60
    int               m_BufferCount;
61
61
    BYTE               *m_Buffer;
62
 
    static const t_int  sBufferSize;
 
62
    static const int  sBufferSize;
63
63
  };
64
64
 
65
65
  class NWindowsSerialFileWriter : public NSerializer
68
68
    NWindowsSerialFileWriter (HANDLE InHandle, LogOutputDevice &InError);
69
69
    ~NWindowsSerialFileWriter();
70
70
 
71
 
    virtual t_s64 Seek (t_s64 InPos, NSerializer::SeekPos seekpos);
72
 
    virtual t_s64 Tell();
 
71
    virtual long long Seek (long long InPos, NSerializer::SeekPos seekpos);
 
72
    virtual long long Tell();
73
73
    virtual bool Close();
74
 
    virtual void SerializeFinal (void *V, t_s64 Length);
 
74
    virtual void SerializeFinal (void *V, long long Length);
75
75
    virtual void Flush();
76
 
    virtual t_s64 GetFileSize();
 
76
    virtual long long GetFileSize();
77
77
    virtual bool isReader()
78
78
    {
79
79
      return false;
87
87
    void _Flush();
88
88
    HANDLE              m_FileHandle;
89
89
    LogOutputDevice &m_Error;
90
 
    t_s64               m_Pos;
91
 
    t_int               m_BufferCount;
 
90
    long long               m_Pos;
 
91
    int               m_BufferCount;
92
92
    BYTE               *m_Buffer;
93
 
    static const t_int  sBufferSize;
 
93
    static const int  sBufferSize;
94
94
    NCriticalSection m_CriticalSection;
95
95
  };
96
96
 
114
114
    /*!
115
115
        @return Size of the File. Return -1 if an error occurs.
116
116
    */
117
 
    t_s64 FileSize (const TCHAR *Filename);
 
117
    long long FileSize (const TCHAR *Filename);
118
118
    bool FileExist (const TCHAR *Filename);
119
119
    int Copy (const TCHAR *DestFile, const TCHAR *SrcFile, bool OverWriteExisting, bool OverWriteReadOnly, NFileTransferMonitor *Monitor);
120
120
    bool Move (const TCHAR *Dest, const TCHAR *Src, bool OverWriteExisting = true, bool OverWriteReadOnly = false, NFileTransferMonitor *Monitor = NULL);
125
125
    /*!
126
126
        @return TRUE is the file exist.
127
127
    */
128
 
    bool GetFileAttribute (const TCHAR *Filename, bool &isDirectory, bool &isReadOnly, bool &isHidden, t_s64 &Size);
 
128
    bool GetFileAttribute (const TCHAR *Filename, bool &isDirectory, bool &isReadOnly, bool &isHidden, long long &Size);
129
129
    bool MakeDirectory (const TCHAR *Path, bool CreateCompletePath = false);
130
130
    bool DeleteDirectory (const TCHAR *Path, bool DeleteContentFirst = false);
131
131