mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-03 00:06:31 +00:00
38 lines
691 B
Objective-C
38 lines
691 B
Objective-C
//
|
|
// Utils.h
|
|
// Moonlight
|
|
//
|
|
// Created by Diego Waxemberg on 10/20/14.
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
@interface Utils : NSObject
|
|
|
|
typedef NS_ENUM(int, PairState) {
|
|
PairStateUnknown,
|
|
PairStateUnpaired,
|
|
PairStatePaired
|
|
};
|
|
|
|
typedef NS_ENUM(int, State) {
|
|
StateUnknown,
|
|
StateOffline,
|
|
StateOnline
|
|
};
|
|
|
|
FOUNDATION_EXPORT NSString *const deviceName;
|
|
|
|
+ (NSData*) randomBytes:(NSInteger)length;
|
|
+ (NSString*) bytesToHex:(NSData*)data;
|
|
+ (NSData*) hexToBytes:(NSString*) hex;
|
|
+ (void) addHelpOptionToDialog:(UIAlertController*)dialog;
|
|
+ (BOOL) isActiveNetworkVPN;
|
|
|
|
@end
|
|
|
|
@interface NSString (NSStringWithTrim)
|
|
|
|
- (NSString*) trim;
|
|
|
|
@end
|