1 /*
2     Copyright (c) 2020, Lukas Holecek <hluk@email.cz>
3 
4     This file is part of CopyQ.
5 
6     CopyQ is free software: you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation, either version 3 of the License, or
9     (at your option) any later version.
10 
11     CopyQ is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15 
16     You should have received a copy of the GNU General Public License
17     along with CopyQ.  If not, see <http://www.gnu.org/licenses/>.
18 */
19 #ifndef CLIPBOARDBROWSERSHARED_H
20 #define CLIPBOARDBROWSERSHARED_H
21 
22 #include "gui/theme.h"
23 
24 #include <QString>
25 
26 #include <memory>
27 
28 class ActionHandler;
29 class ItemFactory;
30 class NotificationDaemon;
31 
32 struct ClipboardBrowserShared {
33     QString editor;
34     int maxItems = 100;
35     bool textWrap = true;
36     bool viMode = false;
37     bool saveOnReturnKey = false;
38     bool moveItemOnReturnKey = false;
39     bool showSimpleItems = false;
40     bool numberSearch = false;
41     int minutesToExpire = 0;
42     int saveDelayMsOnItemAdded = 0;
43     int saveDelayMsOnItemModified = 0;
44     int saveDelayMsOnItemRemoved = 0;
45     int saveDelayMsOnItemMoved = 0;
46     int saveDelayMsOnItemEdited = 0;
47     bool rowIndexFromOne = true;
48     ItemFactory *itemFactory = nullptr;
49     ActionHandler *actions = nullptr;
50     NotificationDaemon *notifications = nullptr;
51     Theme theme;
52 };
53 
54 using ClipboardBrowserSharedPtr = std::shared_ptr<ClipboardBrowserShared>;
55 
56 #endif // CLIPBOARDBROWSERSHARED_H
57