Alexandre Lision | 8521baa | 2015-03-13 11:08:00 -0400 | [diff] [blame] | 1 | /* |
Alexandre Lision | 9fe374b | 2016-01-06 10:17:31 -0500 | [diff] [blame] | 2 | * Copyright (C) 2015-2016 Savoir-faire Linux Inc. |
Alexandre Lision | 8521baa | 2015-03-13 11:08:00 -0400 | [diff] [blame] | 3 | * Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program 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 General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
Alexandre Lision | 8521baa | 2015-03-13 11:08:00 -0400 | [diff] [blame] | 18 | */ |
Alexandre Lision | 5855b6a | 2015-02-03 11:31:05 -0500 | [diff] [blame] | 19 | #import <Cocoa/Cocoa.h> |
Alexandre Lision | 5855b6a | 2015-02-03 11:31:05 -0500 | [diff] [blame] | 20 | |
Anthony Léonard | 9bebf1d | 2017-12-21 14:33:51 -0500 | [diff] [blame] | 21 | namespace lrc { |
| 22 | namespace api { |
| 23 | namespace account { |
| 24 | struct Info; |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | |
Alexandre Lision | fd0d6c8 | 2016-03-29 17:06:54 -0400 | [diff] [blame] | 29 | @interface RingWindowController : NSWindowController <NSSharingServicePickerDelegate> { |
Alexandre Lision | 4a7b95e | 2015-02-20 10:06:43 -0500 | [diff] [blame] | 30 | IBOutlet NSView *currentView; |
Alexandre Lision | 5855b6a | 2015-02-03 11:31:05 -0500 | [diff] [blame] | 31 | } |
| 32 | |
Kateryna Kostiuk | a724846 | 2017-04-18 16:15:31 -0400 | [diff] [blame] | 33 | /** |
| 34 | * KVO to show or hide some UI elements in RingWindow: |
| 35 | * - Share button |
| 36 | * - QRCode |
| 37 | * - RingID field |
| 38 | * - Explanatory label |
| 39 | */ |
| 40 | @property (nonatomic) BOOL hideRingID; |
| 41 | |
Alexandre Lision | 4a7b95e | 2015-02-20 10:06:43 -0500 | [diff] [blame] | 42 | - (IBAction)openPreferences:(id)sender; |
Alexandre Lision | 5855b6a | 2015-02-03 11:31:05 -0500 | [diff] [blame] | 43 | |
Anthony Léonard | 9bebf1d | 2017-12-21 14:33:51 -0500 | [diff] [blame] | 44 | /** |
| 45 | * This method is intended to be used by the ChooseAccountVC to signal the fact that |
| 46 | * the selected account has been changed by user. It will then forward this information |
| 47 | * to relevant controllers and views. |
| 48 | * @param accInfo reference to selected account |
| 49 | */ |
| 50 | - (void) selectAccount:(const lrc::api::account::Info&)accInfo; |
| 51 | |
Anthony Léonard | 8585cc0 | 2017-12-28 14:03:45 -0500 | [diff] [blame] | 52 | /** |
| 53 | * Method triggered when a panel on the right is closed by user action. It triggers any action needed |
| 54 | * on itself or other view controllers to react properly to this event. |
| 55 | */ |
| 56 | -(void) rightPanelClosed; |
| 57 | |
Anthony Léonard | 0a9904c | 2018-01-11 16:43:47 -0500 | [diff] [blame] | 58 | /** |
| 59 | * Triggered by Conversation view when the current conversation is switching from pending state to |
| 60 | * trusted. It triggers conversation list change in SmartViewVC in order to keep current conversation |
| 61 | * visible in left list (to "follow it"). |
| 62 | */ |
| 63 | -(void) currentConversationTrusted; |
| 64 | |
Anthony Léonard | bee94cc | 2018-01-16 11:42:40 -0500 | [diff] [blame] | 65 | /** |
| 66 | * Triggered by SmartView when list type is changed by user. It closes the right view as the selected conversation |
| 67 | * is not in filtered list anymore. |
| 68 | * @note This method is not to be used if list change is triggered by a left panel view. |
| 69 | */ |
| 70 | -(void) listTypeChanged; |
| 71 | |
Alexandre Lision | 5855b6a | 2015-02-03 11:31:05 -0500 | [diff] [blame] | 72 | @end |