VLCStatusBarIcon.h 1.78 KB
Newer Older
1
/*****************************************************************************
2
 * VLCStatusBarIcon.h: Status bar icon controller/delegate
3
 *****************************************************************************
4
 * Copyright (C) 2016 VLC authors and VideoLAN
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
 * $Id$
 *
 * Authors: Goran Dokic <vlc at 8hz dot 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 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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

24
#import <Cocoa/Cocoa.h>
25 26 27

@interface VLCStatusBarIcon : NSObject <NSMenuDelegate>

28
@property (readwrite, strong) NSStatusItem *statusItem;
29 30
@property (readwrite, strong) IBOutlet NSMenu *vlcStatusBarIconMenu;

31 32 33
@property (strong) IBOutlet NSView *playbackInfoView;
@property (strong) IBOutlet NSView *controlsView;

34
// Get data from VLC and update the little status menu
35
- (void)updateMenuItemRandom;
36
- (void)updateProgress;
37 38 39 40 41 42 43

- (IBAction)restoreMainWindow:(id)sender;
- (IBAction)statusBarIconTogglePlayPause:(id)sender;
- (IBAction)statusBarIconStop:(id)sender;
- (IBAction)statusBarIconNext:(id)sender;
- (IBAction)statusBarIconPrevious:(id)sender;
- (IBAction)statusBarIconToggleRandom:(id)sender;
44 45

@end