Skip to content

Commit

Permalink
Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesperflodin1 committed Aug 19, 2018
1 parent 44acd0b commit cd996d0
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 37 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion JFTHRingtoneDataController.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

#import <Foundation/Foundation.h>
#import "JFTHHeaders.h"
#import "JFTHRingtoneImporter.h"


typedef NS_ENUM(NSInteger, JFTHRingtoneParameterType) {
Expand Down
1 change: 0 additions & 1 deletion JFTHRingtoneDataController.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "JFTHRingtoneDataController.h"
#import "JFTHRingtoneImporter.h"

NSString * const RINGTONE_PLIST_PATH = @"/var/mobile/Media/iTunes_Control/iTunes/Ringtones.plist";
NSString * const TONEHELPERDATA_PLIST_PATH = @"/var/mobile/Library/Application Support/ToneHelper/ToneHelperData.plist";
Expand Down
6 changes: 5 additions & 1 deletion JFTHRingtoneImporter.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#import "ToneHelper.h"
#import "JFTHHeaders.h"
#import "JFTHRingtoneDataController.h"

//For md5 calculations
#include "FileHash.h"

@class JFTHRingtoneDataController;

@interface JFTHRingtoneImporter : NSObject {

NSMutableDictionary *ringtonesToImport;
Expand Down
2 changes: 1 addition & 1 deletion Tweak.xm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "ToneHelper.h"
#import "JFTHHeaders.h"
#import "JFTHRingtoneImporter.h"

#import <objc/runtime.h>
Expand Down
2 changes: 1 addition & 1 deletion layout/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: fi.flodin.tonehelper
Name: ToneHelper
Depends: mobilesubstrate, ws.hbang.common (>= 1.12)
Version: 0.2.7
Version: 0.2.8
Architecture: iphoneos-arm
Description: Automatically adds ringtones from Audiko to device
Maintainer: Jesper Flodin <[email protected]>
Expand Down
32 changes: 32 additions & 0 deletions thprefsbundle/JFTHPrefHeaders.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <Preferences/PSListController.h>
#import <Preferences/PSSpecifier.h>

//libcephei prefs headers we need
#import <CepheiPrefs/HBTintedTableCell.h>
#import <CepheiPrefs/HBRootListController.h>
#import <CepheiPrefs/HBLinkTableCell.h>
#import <CepheiPrefs/HBTwitterCell.h>
#import <CepheiPrefs/HBImageTableCell.h>
#import <CepheiPrefs/HBPackageNameHeaderCell.h>
#import <CepheiPrefs/HBSupportController.h>

#import <SafariServices/SFSafariViewController.h>
#import <TechSupport/TechSupport.h>

#import "../Log.h"

@interface NSTask : NSObject

- (id)init;
- (void)launch;
- (void)setArguments:(id)arg1;
- (void)setLaunchPath:(id)arg1;
- (void)setStandardOutput:(id)arg1;
- (id)standardOutput;

@end

@interface PSEditableListController : PSListController
@end
9 changes: 2 additions & 7 deletions thprefsbundle/JFTHRingtoneListController.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
//libcephei prefs headers we need
//#import <CepheiPrefs/HBListController.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <Preferences/PSListController.h>
#import <Preferences/PSSpecifier.h>
#import "JFTHPrefHeaders.h"

#import "../JFTHRingtoneDataController.h"
#import "../Log.h"

@interface PSEditableListController : PSListController
@end
@interface JFTHRingtoneListController : PSEditableListController {
JFTHRingtoneDataController *_toneData;
}
Expand Down
26 changes: 1 addition & 25 deletions thprefsbundle/JFTHRootListController.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
//libcephei prefs headers we need
#import <CepheiPrefs/HBTintedTableCell.h>
#import <CepheiPrefs/HBRootListController.h>
#import <CepheiPrefs/HBLinkTableCell.h>
#import <CepheiPrefs/HBTwitterCell.h>
#import <CepheiPrefs/HBImageTableCell.h>
#import <CepheiPrefs/HBPackageNameHeaderCell.h>
#import <CepheiPrefs/HBSupportController.h>

#import <SafariServices/SFSafariViewController.h>

#import <Preferences/PSSpecifier.h>

#import <TechSupport/TechSupport.h>

#import "../Log.h"
#import "JFTHPrefHeaders.h"

@class TSIncludeInstruction;

Expand All @@ -32,13 +17,4 @@ NS_ASSUME_NONNULL_BEGIN

NS_ASSUME_NONNULL_END

@interface NSTask : NSObject

- (id)init;
- (void)launch;
- (void)setArguments:(id)arg1;
- (void)setLaunchPath:(id)arg1;
- (void)setStandardOutput:(id)arg1;
- (id)standardOutput;

@end

0 comments on commit cd996d0

Please sign in to comment.