-
Notifications
You must be signed in to change notification settings - Fork 0
/
moveblock.h
61 lines (44 loc) · 1.65 KB
/
moveblock.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
Copyright 2011 Kapustin Andrey
This file is part of Visual move.
Visual move is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Visual move is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FileRouter. If not, see <http://www.gnu.org/licenses/>.
Êîä ðàñïðîñòðàíÿåòñÿ ïî ëèöåíçèè GPL 3
Àâòîð: Êàïóñòèí Àíäðåé, 2011 ã.
*/
#ifndef MOVEBLOCK_H
#define MOVEBLOCK_H
#include <QString>
//#include <QList>
#include <QStringList>
#include "movedir.h"
//! Çàïèñü îäíîãî áëîêà ïåðåìåùåíèÿ
class MoveBlock
{
public:
//! Íàïðàâëåíèå ïåðåìåùåíèÿ
enum MoveDirection {ToLeft,ToRight,ToBoth};
MoveBlock(const QString &nameblock,const MoveDir &mSourceDir,const MoveDir &mDestDir,MoveDirection direct);
MoveBlock(const QString &nameblock,const QString &sourcedir,const QString &destdir,
const QString &sourcemask,const QString &destmask,
MoveDirection direct);
//! Èìÿ áëîêà
QString nameBlock;
//! Èñòî÷íèê (ñëåâà)
MoveDir msourceDir;
//! Ïðèåìíèê (ñïðàâà)
MoveDir mdestDir;
//! Äîïóñòèìûå íàïðàâëåíèÿ ïåðåìåùåíèÿ
MoveDirection direction;
//! Ïåðå÷èòàòü ñîäåðæèìîå äèðåêòîðèé
void refresh ();
};
#endif // MOVEBLOCK_H