summaryrefslogtreecommitdiffstats
path: root/macosx/HBLanguagesSelection.h
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBLanguagesSelection.h')
-rw-r--r--macosx/HBLanguagesSelection.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/macosx/HBLanguagesSelection.h b/macosx/HBLanguagesSelection.h
new file mode 100644
index 000000000..725fdf9d9
--- /dev/null
+++ b/macosx/HBLanguagesSelection.h
@@ -0,0 +1,50 @@
+/* HBLanguagesSelection.h $
+
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr/>.
+ It may be used under the terms of the GNU General Public License. */
+
+#import <Foundation/Foundation.h>
+#import <Cocoa/Cocoa.h>
+
+/**
+ * A collection of KVO enabled model and controllers class
+ * used to populate the languages selection table view
+ */
+
+/**
+ * HBLang
+ */
+@interface HBLang : NSObject
+
+@property (nonatomic, readwrite) BOOL isSelected;
+@property (nonatomic, readonly) NSString *language;
+@property (nonatomic, readonly) NSString *iso639_2;
+
+- (instancetype)initWithLanguage:(NSString *)value iso639_2code:(NSString *)code;
+
+@end;
+
+/**
+ * HBLanguagesSelection
+ */
+@interface HBLanguagesSelection : NSObject
+
+@property (nonatomic, readonly) NSMutableArray *languagesArray;
+@property (nonatomic, readonly) NSArray *selectedLanguages;
+
+- (instancetype)initWithLanguages:(NSArray *)languages;
+
+@end
+
+/**
+ * HBLanguageArrayController
+ */
+@interface HBLanguageArrayController : NSArrayController
+
+/**
+ * Set whether to show only the selected languages or all languages
+ */
+@property (nonatomic, readwrite) BOOL showSelectedOnly;
+
+@end