Commit 6390a609 authored by Gleb Pinigin's avatar Gleb Pinigin

Reorganize imports, hide implementation details

parent d1a6a14f
...@@ -8,9 +8,7 @@ ...@@ -8,9 +8,7 @@
// Refer to the COPYING file of the official project for license. // Refer to the COPYING file of the official project for license.
// //
#import "VLCHTTPFileDownloader.h" @interface VLCDownloadViewController : UIViewController
@interface VLCDownloadViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, VLCHTTPFileDownloader>
@property (nonatomic, strong) IBOutlet UIButton *downloadButton; @property (nonatomic, strong) IBOutlet UIButton *downloadButton;
@property (nonatomic, strong) IBOutlet UITextField *urlField; @property (nonatomic, strong) IBOutlet UITextField *urlField;
......
...@@ -14,11 +14,13 @@ ...@@ -14,11 +14,13 @@
#import "UIBarButtonItem+Theme.h" #import "UIBarButtonItem+Theme.h"
#import "WhiteRaccoon.h" #import "WhiteRaccoon.h"
#import "NSString+SupportedMedia.h" #import "NSString+SupportedMedia.h"
#import "VLCHTTPFileDownloader.h"
#define kVLCDownloadViaHTTP 1 #define kVLCDownloadViaHTTP 1
#define kVLCDownloadViaFTP 2 #define kVLCDownloadViaFTP 2
@interface VLCDownloadViewController () <WRRequestDelegate> @interface VLCDownloadViewController () <WRRequestDelegate, UITableViewDataSource, UITableViewDelegate,
VLCHTTPFileDownloader>
{ {
NSMutableArray *_currentDownloads; NSMutableArray *_currentDownloads;
NSUInteger _currentDownloadType; NSUInteger _currentDownloadType;
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
@end @end
@class MultipartFormDataParser; @class MultipartFormDataParser;
@interface VLCHTTPConnection : HTTPConnection { @interface VLCHTTPConnection : HTTPConnection {
MultipartFormDataParser* parser; MultipartFormDataParser* parser;
NSFileHandle* storeFile; NSFileHandle* storeFile;
......
...@@ -8,13 +8,14 @@ ...@@ -8,13 +8,14 @@
// Refer to the COPYING file of the official project for license. // Refer to the COPYING file of the official project for license.
// //
#import "VLCStatusLabel.h"
#import "VLCHorizontalSwipeGestureRecognizer.h"
#import "VLCVerticalSwipeGestureRecognizer.h"
#import "OBSlider.h"
#import <MediaPlayer/MediaPlayer.h> #import <MediaPlayer/MediaPlayer.h>
@interface VLCMovieViewController : UIViewController <VLCMediaPlayerDelegate, UIActionSheetDelegate, VLCHorizontalSwipeGestureRecognizer, VLCVerticalSwipeGestureRecognizer> @class OBSlider;
@class VLCStatusLabel;
@class VLCHorizontalSwipeGestureRecognizer;
@class VLCVerticalSwipeGestureRecognizer;
@interface VLCMovieViewController : UIViewController <VLCMediaPlayerDelegate, UIActionSheetDelegate>
@property (nonatomic, strong) IBOutlet UIView *movieView; @property (nonatomic, strong) IBOutlet UIView *movieView;
@property (nonatomic, strong) IBOutlet UIBarButtonItem *backButton; @property (nonatomic, strong) IBOutlet UIBarButtonItem *backButton;
......
...@@ -14,11 +14,16 @@ ...@@ -14,11 +14,16 @@
#import <CommonCrypto/CommonDigest.h> #import <CommonCrypto/CommonDigest.h>
#import "UIDevice+SpeedCategory.h" #import "UIDevice+SpeedCategory.h"
#import "VLCBugreporter.h" #import "VLCBugreporter.h"
#import <MediaPlayer/MediaPlayer.h>
#import "OBSlider.h"
#import "VLCStatusLabel.h"
#import "VLCHorizontalSwipeGestureRecognizer.h"
#import "VLCVerticalSwipeGestureRecognizer.h"
#define INPUT_RATE_DEFAULT 1000. #define INPUT_RATE_DEFAULT 1000.
@interface VLCMovieViewController () <UIGestureRecognizerDelegate, AVAudioSessionDelegate> @interface VLCMovieViewController () <UIGestureRecognizerDelegate, AVAudioSessionDelegate,
VLCHorizontalSwipeGestureRecognizer, VLCVerticalSwipeGestureRecognizer>
{ {
VLCMediaPlayer *_mediaPlayer; VLCMediaPlayer *_mediaPlayer;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// Refer to the COPYING file of the official project for license. // Refer to the COPYING file of the official project for license.
// //
@interface VLCOpenNetworkStreamViewController : UIViewController <UITableViewDataSource, UITableViewDelegate> @interface VLCOpenNetworkStreamViewController : UIViewController
@property (strong, nonatomic) IBOutlet UITextField *urlField; @property (strong, nonatomic) IBOutlet UITextField *urlField;
@property (strong, nonatomic) IBOutlet UIButton *openButton; @property (strong, nonatomic) IBOutlet UIButton *openButton;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#import "UINavigationController+Theme.h" #import "UINavigationController+Theme.h"
#import "VLCMenuTableViewController.h" #import "VLCMenuTableViewController.h"
@interface VLCOpenNetworkStreamViewController () @interface VLCOpenNetworkStreamViewController () <UITableViewDataSource, UITableViewDelegate>
{ {
NSMutableArray *_recentURLs; NSMutableArray *_recentURLs;
} }
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
// Refer to the COPYING file of the official project for license. // Refer to the COPYING file of the official project for license.
// //
#import "VLCLinearProgressIndicator.h"
#import "AQGridViewCell.h" #import "AQGridViewCell.h"
@class AQGridView; @class AQGridView;
@class VLCLinearProgressIndicator;
@interface VLCPlaylistGridView : AQGridViewCell @interface VLCPlaylistGridView : AQGridViewCell
@property (nonatomic, strong) IBOutlet UILabel *titleLabel; @property (nonatomic, strong) IBOutlet UILabel *titleLabel;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
// //
#import "VLCPlaylistGridView.h" #import "VLCPlaylistGridView.h"
#import "VLCLinearProgressIndicator.h"
#import "VLCAppDelegate.h" #import "VLCAppDelegate.h"
#import "AQGridView.h" #import "AQGridView.h"
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#import "VLCLinearProgressIndicator.h"
@class VLCLinearProgressIndicator;
@interface VLCPlaylistTableViewCell : UITableViewCell @interface VLCPlaylistTableViewCell : UITableViewCell
@property (nonatomic, strong) IBOutlet UILabel *titleLabel; @property (nonatomic, strong) IBOutlet UILabel *titleLabel;
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
// //
#import "VLCPlaylistTableViewCell.h" #import "VLCPlaylistTableViewCell.h"
#import "VLCLinearProgressIndicator.h"
#import <MediaLibraryKit/MLAlbum.h> #import <MediaLibraryKit/MLAlbum.h>
#define MAX_CACHE_SIZE 21 // three times the number of items shown on iPhone 5 #define MAX_CACHE_SIZE 21 // three times the number of items shown on iPhone 5
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "AQGridView.h"
#define EXPERIMENTAL_LIBRARY 1 #define EXPERIMENTAL_LIBRARY 1
...@@ -19,6 +18,7 @@ ...@@ -19,6 +18,7 @@
@class VLCMovieViewController; @class VLCMovieViewController;
@class EmptyLibraryView; @class EmptyLibraryView;
@class AQGridView;
@interface VLCPlaylistViewController : UIViewController <UITabBarDelegate, UIPopoverControllerDelegate> @interface VLCPlaylistViewController : UIViewController <UITabBarDelegate, UIPopoverControllerDelegate>
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#import "VLCBugreporter.h" #import "VLCBugreporter.h"
#import "VLCAppDelegate.h" #import "VLCAppDelegate.h"
#import "UIBarButtonItem+Theme.h" #import "UIBarButtonItem+Theme.h"
#import "AQGridView.h"
#ifndef UIStatusBarStyleLightContent #ifndef UIStatusBarStyleLightContent
......
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
// Refer to the COPYING file of the official project for license. // Refer to the COPYING file of the official project for license.
// //
#import "IASKAppSettingsViewController.h" @class IASKAppSettingsViewController;
#import "PAPasscodeViewController.h" @interface VLCSettingsController : NSObject
@interface VLCSettingsController : NSObject <PAPasscodeViewControllerDelegate, IASKSettingsDelegate>
@property (nonatomic, retain) IASKAppSettingsViewController *viewController; @property (nonatomic, retain) IASKAppSettingsViewController *viewController;
......
...@@ -12,8 +12,13 @@ ...@@ -12,8 +12,13 @@
#import "VLCAppDelegate.h" #import "VLCAppDelegate.h"
#import "VLCPlaylistViewController.h" #import "VLCPlaylistViewController.h"
#import "IASKSettingsReader.h" #import "IASKSettingsReader.h"
#import "IASKAppSettingsViewController.h"
#import "PAPasscodeViewController.h"
#import <DropboxSDK/DropboxSDK.h> #import <DropboxSDK/DropboxSDK.h>
@interface VLCSettingsController ()<PAPasscodeViewControllerDelegate, IASKSettingsDelegate>
@end
@implementation VLCSettingsController @implementation VLCSettingsController
- (id)init - (id)init
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment