blob: 1e63d8e6b84f50742972010720a6575d2a81e301 [file] [log] [blame]
Alexandre Lisionf5fc4792015-03-17 09:15:43 -04001/*
Sébastien Blin029ffa82019-01-02 17:43:48 -05002 * Copyright (C) 2015-2019 Savoir-faire Linux Inc.
Alexandre Lisionf5fc4792015-03-17 09:15:43 -04003 * Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Kateryna Kostiuk1f8c1252018-07-30 18:18:57 -04004 * Author: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
Alexandre Lisionf5fc4792015-03-17 09:15:43 -04005 *
6 * This program 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 * This program 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 this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Alexandre Lisionf5fc4792015-03-17 09:15:43 -040019 */
Alexandre Lision9fe374b2016-01-06 10:17:31 -050020
Alexandre Lisionf5fc4792015-03-17 09:15:43 -040021#import <Cocoa/Cocoa.h>
22
Kateryna Kostiuk1f8c1252018-07-30 18:18:57 -040023#import "LrcModelsProtocol.h"
Kateryna Kostiukc867eb92020-03-08 13:15:17 -040024#include <qstring.h>
Alexandre Lisionf5fc4792015-03-17 09:15:43 -040025
Kateryna Kostiuk1f8c1252018-07-30 18:18:57 -040026@protocol AccountAdvancedProtocol
Kateryna Kostiukc867eb92020-03-08 13:15:17 -040027- (void) setSelectedAccount:(const QString&) account;
Kateryna Kostiuk1f8c1252018-07-30 18:18:57 -040028@end
29
30@interface AccAdvancedVC : NSViewController <NSTableViewDataSource, NSTableViewDelegate, AccountAdvancedProtocol, LrcModelsProtocol>
31
Kateryna Kostiukc867eb92020-03-08 13:15:17 -040032@property QString selectedAccountID;
Kateryna Kostiuk1f8c1252018-07-30 18:18:57 -040033@property (unsafe_unretained) IBOutlet NSButton* selectCACertificateButton;
34@property (unsafe_unretained) IBOutlet NSButton* selectUserCertificateButton;
35@property (unsafe_unretained) IBOutlet NSButton* selectPrivateKeyButton;
36@property (unsafe_unretained) IBOutlet NSSecureTextField *privateKeyPaswordField;
37
38- (IBAction) valueDidChange: (id) sender;
Alexandre Lisionf5fc4792015-03-17 09:15:43 -040039
40@end