1 //********************************************************************************** 2 //EncryptPad Copyright 2016 Evgeny Pokhilko 3 //<http://www.evpo.net/encryptpad> 4 // 5 //This file is part of EncryptPad 6 // 7 //EncryptPad is free software: you can redistribute it and/or modify 8 //it under the terms of the GNU General Public License as published by 9 //the Free Software Foundation, either version 2 of the License, or 10 //(at your option) any later version. 11 // 12 //EncryptPad is distributed in the hope that it will be useful, 13 //but WITHOUT ANY WARRANTY; without even the implied warranty of 14 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 //GNU General Public License for more details. 16 // 17 //You should have received a copy of the GNU General Public License 18 //along with EncryptPad. If not, see <http://www.gnu.org/licenses/>. 19 //********************************************************************************** 20 #ifndef SET_ENCRYPTION_KEY_H 21 #define SET_ENCRYPTION_KEY_H 22 23 #include <QWidget> 24 #include <QString> 25 #include "file_request_service.h" 26 27 namespace EncryptPad 28 { 29 struct EncryptionKeySelectionResult 30 { 31 QString key_file_path; 32 bool persist_key_path; 33 }; 34 35 bool SetEncryptionKey(QWidget *parent, const QString &key_file_path, bool persist_key_path, 36 FileRequestService &file_request_service, EncryptionKeySelectionResult &result_out); 37 } 38 39 #endif // SET_ENCRYPTION_KEY_H 40