2011-03-20 15:16:13 +08:00
|
|
|
//
|
2016-04-09 23:18:45 +08:00
|
|
|
// FlycutClipping.h
|
|
|
|
// Flycut
|
2011-03-20 15:16:13 +08:00
|
|
|
//
|
2016-04-09 23:18:45 +08:00
|
|
|
// Flycut by Gennadiy Potapov and contributors. Based on Jumpcut by Steve Cook.
|
|
|
|
// Copyright 2011 General Arcade. All rights reserved.
|
2011-03-20 15:16:13 +08:00
|
|
|
//
|
2016-04-09 23:18:45 +08:00
|
|
|
// This code is open-source software subject to the MIT License; see the homepage
|
|
|
|
// at <https://github.com/TermiT/Flycut> for details.
|
2011-03-20 15:16:13 +08:00
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
2016-04-09 23:18:45 +08:00
|
|
|
@interface FlycutClipping : NSObject {
|
2011-03-20 15:16:13 +08:00
|
|
|
// What must a clipping hold?
|
|
|
|
// The text
|
|
|
|
NSString * clipContents;
|
|
|
|
// The text type
|
|
|
|
NSString * clipType;
|
|
|
|
// The display length
|
|
|
|
int clipDisplayLength;
|
|
|
|
// The display string
|
|
|
|
NSString * clipDisplayString;
|
|
|
|
// Does it have a name?
|
|
|
|
BOOL clipHasName;
|
2016-01-16 13:15:23 +08:00
|
|
|
// The app name it came from
|
|
|
|
NSString * appLocalizedName;
|
|
|
|
// The the bunle URL of the app it came from
|
|
|
|
NSString * appBundleURL;
|
|
|
|
// The time
|
|
|
|
int clipTimestamp;
|
2011-03-20 15:16:13 +08:00
|
|
|
}
|
|
|
|
|
2016-01-16 13:15:23 +08:00
|
|
|
-(id) initWithContents:(NSString *)contents withType:(NSString *)type withDisplayLength:(int)displayLength withAppLocalizedName:(NSString *)localizedName withAppBundleURL:(NSString *)bundleURL withTimestamp:(int)timestamp;
|
2011-03-20 15:16:13 +08:00
|
|
|
/* -(id) initWithCoder:(NSCoder *)coder;
|
|
|
|
-(void) decodeWithCoder:(NSCoder *)coder; */
|
|
|
|
-(NSString *) description;
|
|
|
|
|
|
|
|
// set values
|
|
|
|
-(void) setContents:(NSString *)newContents setDisplayLength:(int)newDisplayLength;
|
|
|
|
-(void) setContents:(NSString *)newContents;
|
|
|
|
-(void) setType:(NSString *)newType;
|
|
|
|
-(void) setDisplayLength:(int)newDisplayLength;
|
|
|
|
-(void) setHasName:(BOOL)newHasName;
|
|
|
|
|
|
|
|
// Retrieve values
|
2016-04-09 23:18:45 +08:00
|
|
|
-(FlycutClipping *) clipping;
|
2011-03-20 15:16:13 +08:00
|
|
|
-(NSString *) contents;
|
|
|
|
-(int) displayLength;
|
|
|
|
-(NSString *) displayString;
|
|
|
|
-(NSString *) type;
|
2016-01-16 13:15:23 +08:00
|
|
|
-(NSString *) appLocalizedName;
|
|
|
|
-(NSString *) appBundleURL;
|
|
|
|
-(int) timestamp;
|
2011-03-20 15:16:13 +08:00
|
|
|
-(BOOL) hasName;
|
|
|
|
|
|
|
|
// Additional functions
|
|
|
|
-(void) resetDisplayString;
|
|
|
|
|
|
|
|
@end
|