mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Replace preprocessor defines with constants in objc code (#3974)
This commit is contained in:
@@ -4,17 +4,21 @@
|
||||
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
#define FILTER_NONE @"None"
|
||||
#define FILTER_ACTIVE @"Active"
|
||||
#define FILTER_DOWNLOAD @"Download"
|
||||
#define FILTER_SEED @"Seed"
|
||||
#define FILTER_PAUSE @"Pause"
|
||||
#define FILTER_ERROR @"Error"
|
||||
typedef NSString* FilterType NS_TYPED_EXTENSIBLE_ENUM;
|
||||
|
||||
#define FILTER_TYPE_NAME @"Name"
|
||||
#define FILTER_TYPE_TRACKER @"Tracker"
|
||||
extern FilterType const FilterTypeNone;
|
||||
extern FilterType const FilterTypeActive;
|
||||
extern FilterType const FilterTypeDownload;
|
||||
extern FilterType const FilterTypeSeed;
|
||||
extern FilterType const FilterTypePause;
|
||||
extern FilterType const FilterTypeError;
|
||||
|
||||
#define GROUP_FILTER_ALL_TAG -2
|
||||
typedef NSString* FilterSearchType NS_TYPED_EXTENSIBLE_ENUM;
|
||||
|
||||
extern FilterSearchType const FilterSearchTypeName;
|
||||
extern FilterSearchType const FilterSearchTypeTracker;
|
||||
|
||||
extern const NSInteger kGroupFilterAllTag;
|
||||
|
||||
@interface FilterBarController : NSViewController
|
||||
|
||||
|
||||
Reference in New Issue
Block a user