ReactOS
0.4.15-dev-5863-g1fe3ab7
send.h
Go to the documentation of this file.
1
/* Copyright (c) Mark Harmstone 2017
2
*
3
* This file is part of WinBtrfs.
4
*
5
* WinBtrfs is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Lesser General Public Licence as published by
7
* the Free Software Foundation, either version 3 of the Licence, or
8
* (at your option) any later version.
9
*
10
* WinBtrfs is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Lesser General Public Licence for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public Licence
16
* along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
17
18
#pragma once
19
20
#ifdef __REACTOS__
21
#include "btrfs.h"
22
#include <stdlib.h>
23
#else
24
#include "../btrfs.h"
25
#endif
26
27
class
BtrfsSend
{
28
public
:
29
BtrfsSend
() {
30
started
=
false
;
31
file
[0] = 0;
32
dirh
=
INVALID_HANDLE_VALUE
;
33
stream
=
INVALID_HANDLE_VALUE
;
34
subvol
=
L
""
;
35
buf
=
nullptr
;
36
incremental
=
false
;
37
}
38
39
~BtrfsSend
() {
40
if
(
buf
)
41
free
(
buf
);
42
}
43
44
void
Open
(
HWND
hwnd
,
WCHAR
*
path
);
45
INT_PTR
SendDlgProc
(
HWND
hwndDlg,
UINT
uMsg,
WPARAM
wParam
,
LPARAM
lParam
);
46
DWORD
Thread
();
47
48
private
:
49
void
StartSend
(
HWND
hwnd
);
50
void
Browse
(
HWND
hwnd
);
51
void
BrowseParent
(
HWND
hwnd
);
52
void
AddClone
(
HWND
hwnd
);
53
void
RemoveClone
(
HWND
hwnd
);
54
55
bool
started
;
56
bool
incremental
;
57
WCHAR
file
[
MAX_PATH
],
closetext
[255];
58
HANDLE
thread
,
dirh
,
stream
;
59
HWND
hwnd
;
60
wstring
subvol
;
61
char
*
buf
;
62
vector <wstring>
clones
;
63
};
BtrfsSend
Definition:
send.h:27
BtrfsSend::Thread
DWORD Thread()
Definition:
send.cpp:30
BtrfsSend::Browse
void Browse(HWND hwnd)
Definition:
send.cpp:295
BtrfsSend::AddClone
void AddClone(HWND hwnd)
Definition:
send.cpp:360
BtrfsSend::closetext
WCHAR closetext[255]
Definition:
send.h:57
BtrfsSend::buf
char * buf
Definition:
send.h:61
BtrfsSend::clones
vector< wstring > clones
Definition:
send.h:62
BtrfsSend::subvol
wstring subvol
Definition:
send.h:60
BtrfsSend::thread
HANDLE thread
Definition:
send.h:58
BtrfsSend::StartSend
void StartSend(HWND hwnd)
Definition:
send.cpp:233
BtrfsSend::hwnd
HWND hwnd
Definition:
send.h:59
BtrfsSend::~BtrfsSend
~BtrfsSend()
Definition:
send.h:39
BtrfsSend::incremental
bool incremental
Definition:
send.h:56
BtrfsSend::RemoveClone
void RemoveClone(HWND hwnd)
Definition:
send.cpp:406
BtrfsSend::SendDlgProc
INT_PTR SendDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition:
send.cpp:421
BtrfsSend::BrowseParent
void BrowseParent(HWND hwnd)
Definition:
send.cpp:314
BtrfsSend::started
bool started
Definition:
send.h:55
BtrfsSend::stream
HANDLE stream
Definition:
send.h:58
BtrfsSend::BtrfsSend
BtrfsSend()
Definition:
send.h:29
BtrfsSend::dirh
HANDLE dirh
Definition:
send.h:58
wParam
WPARAM wParam
Definition:
combotst.c:138
lParam
LPARAM lParam
Definition:
combotst.c:139
free
#define free
Definition:
debug_ros.c:5
INVALID_HANDLE_VALUE
#define INVALID_HANDLE_VALUE
Definition:
compat.h:731
MAX_PATH
#define MAX_PATH
Definition:
compat.h:34
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
buf
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition:
glext.h:7751
void
Definition:
nsiface.idl:2307
Open
#define Open
Definition:
syshdrs.h:62
UINT
unsigned int UINT
Definition:
ndis.h:50
L
#define L(x)
Definition:
ntvdm.h:50
file
Definition:
fci.c:127
path
Definition:
wbemprox_private.h:188
stream
Definition:
parse.h:23
INT_PTR
int32_t INT_PTR
Definition:
typedefs.h:64
hwnd
_In_ LONG _In_ HWND hwnd
Definition:
winddi.h:4023
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
WPARAM
UINT_PTR WPARAM
Definition:
windef.h:207
WCHAR
__wchar_t WCHAR
Definition:
xmlstorage.h:180
dll
shellext
shellbtrfs
send.h
Generated on Thu Mar 23 2023 06:02:46 for ReactOS by
1.9.6