multi-device: update Ring account creation wizard
This patch implements multi-device support
- The account creation wizzard has now two options "Existing Ring
account" and "New Ring account".
"Existing Ring account": Allows for fetching a Ring account archive
from the DHT. Requires pin and password.
"New Ring account": This is the previously existing wizard. It was
modified to ask for a password which will be used to encrypt the
account archive. This password is then required for exporting the
account on the Ring.
- Creating a new Ring account with the "+" button now triggers the
account creation wizard.
Change-Id: I6840d968e52de014ab0aa9dd6f5bc1ab31f9e9ec
Tuleap: #958
diff --git a/src/RingWizardLinkAccountVC.h b/src/RingWizardLinkAccountVC.h
new file mode 100644
index 0000000..bb8151c
--- /dev/null
+++ b/src/RingWizardLinkAccountVC.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2015-2016 Savoir-faire Linux Inc.
+ * Author: Loïc Siret <loic.siret@savoirfairelinux.com>
+ *
+ * This program 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.
+ *
+ * This program 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 this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#import <Cocoa/Cocoa.h>
+
+@protocol RingWizardLinkDelegate <NSObject>
+- (void)didLinkAccountWithSuccess:(BOOL)success;
+@end
+
+@interface RingWizardLinkAccountVC : NSViewController
+@property (nonatomic, weak) NSWindowController <RingWizardLinkDelegate>* delegate;
+@property (nonatomic, weak) NSString* pinValue;
+@property (nonatomic, weak) NSString* passwordValue;
+
+- (void)show;
+@end