1
0
mirror of https://github.com/danog/Telegram.git synced 2025-01-22 05:52:06 +01:00
Telegram/Telegraph/TGMusicPlayerItemSignals.h
2015-10-01 19:19:52 +03:00

29 lines
565 B
Objective-C

#import <Foundation/Foundation.h>
#import <SSignalKit/SSignalKit.h>
#import "TGMusicPlayerItem.h"
typedef struct {
bool downloaded;
bool downloading;
CGFloat progress;
} TGMusicPlayerItemAvailability;
#ifdef __cplusplus
extern "C" {
#endif
TGMusicPlayerItemAvailability TGMusicPlayerItemAvailabilityUnpack(int64_t value);
#ifdef __cplusplus
}
#endif
@interface TGMusicPlayerItemSignals : NSObject
+ (NSString *)pathForItem:(TGMusicPlayerItem *)item;
+ (SSignal *)itemAvailability:(TGMusicPlayerItem *)item priority:(bool)priority;
@end