/*****************************************************************************
* Local prototypes.
*****************************************************************************/
-int ExecuteOnMainThread( id target, SEL sel, void * p_arg );
unsigned int CocoaKeyToVLC( unichar i_key );
#define VLCIntf [[VLCMain sharedInstance] getIntf]
struct intf_sys_t
{
NSAutoreleasePool * o_pool;
- NSPort * o_sendport;
-
- /* the current input */
- input_thread_t * p_input;
/* special actions */
bool b_mute;
/* The messages window */
msg_subscription_t * p_sub;
-
};
/*****************************************************************************
* VLCMain interface
*****************************************************************************/
@class AppleRemote;
+@class VLCInformation;
@interface VLCMain : NSObject
{
intf_thread_t *p_intf; /* The main intf object */
id o_bookmarks; /* VLCBookmarks */
id o_embedded_list; /* VLCEmbeddedList*/
id o_interaction_list; /* VLCInteractionList*/
- id o_sfilters; /* VLCsFilters */
- id o_info; /* VLCInformation */
+ VLCInformation * o_info; /* VLCInformation */
#ifdef UPDATE_CHECK
id o_update; /* VLCUpdate */
#endif
BOOL nib_wizard_loaded; /* wizard nibfile */
BOOL nib_extended_loaded; /* extended nibfile */
BOOL nib_bookmarks_loaded; /* bookmarks nibfile */
- BOOL nib_sfilters_loaded; /* sfilters nibfile */
BOOL nib_prefs_loaded; /* preferences nibfile */
BOOL nib_update_loaded; /* update nibfile */
BOOL nib_info_loaded; /* information panel nibfile */
NSSize o_size_with_playlist;
- NSThread * manageThread;
-
int i_lastShownVolume;
+ /* the manage thread */
+ pthread_t manage_thread;
+
+ /* The timer that update the interface */
+ NSTimer * interfaceTimer;
+
AppleRemote * o_remote;
BOOL b_remote_button_hold; /* true as long as the user holds the left,right,plus or minus on the remote control */
}
- (IBAction)showWizard:(id)sender;
- (IBAction)showExtended:(id)sender;
- (IBAction)showBookmarks:(id)sender;
-- (IBAction)showSFilters:(id)sender;
- (IBAction)viewAbout:(id)sender;
- (IBAction)showLicense:(id)sender;