]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/interaction.h
Preliminary interaction framework for Mac OS X. Not finished, since core changes...
[vlc] / modules / gui / macosx / interaction.h
diff --git a/modules/gui/macosx/interaction.h b/modules/gui/macosx/interaction.h
new file mode 100644 (file)
index 0000000..585a492
--- /dev/null
@@ -0,0 +1,55 @@
+/*****************************************************************************
+ * interaction.h: Mac OS X interaction dialogs
+ *****************************************************************************
+ * Copyright (C) 2001-2005 the VideoLAN team
+ * $Id: vout.h 13803 2005-12-18 18:54:28Z bigben $
+ *
+ * Authors: Derk-Jan Hartman <hartman at videolan dot org>
+ *
+ * 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 2 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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ *****************************************************************************/
+#include <vlc/vlc.h>
+#include <vlc_interaction.h>
+#include <Cocoa/Cocoa.h>
+
+/*****************************************************************************
+ * VLCInteraction interface
+ *****************************************************************************/
+@interface VLCInteraction : NSObject
+{
+    interaction_dialog_t    *p_dialog;
+}
+
+-(id)initDialog: (interaction_dialog_t *)_p_dialog;
+-(void)runDialog;
+-(void)updateDialog;
+-(void)hideDialog;
+-(void)destroyDialog;
+
+@end
+
+/*****************************************************************************
+ * VLCInteractionList interface
+ *****************************************************************************/
+@interface VLCInteractionList : NSObject
+{
+    NSMutableArray *o_interaction_list;
+}
+
+-(void)newInteractionEvent: (NSNotification *)o_notification;
+-(void)addInteraction: (interaction_dialog_t *)p_dialog;
+-(void)removeInteraction: (VLCInteraction *)p_interaction;
+
+@end