-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLSProfileManager.h
More file actions
39 lines (30 loc) · 1003 Bytes
/
LSProfileManager.h
File metadata and controls
39 lines (30 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// LSProfileManager.h
// LSProfileManager
//
// Created by StephenChen on 14/12/19.
// Copyright (c) 2014年 Lansion. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface LSProfileManager : NSObject
+ (BOOL) setUp;
// profile operations
+ (NSDictionary*) listProfiles;
+ (NSDictionary*) lastLogin;
+ (BOOL) loadProfile:(NSString*)name password:(NSString*)password;
+ (BOOL) deleteProfile:(NSString*)name;
+ (BOOL) resetLastLoginPsw;
+ (BOOL) createFolder:(NSString*)folderName;
+ (BOOL) deleteFolder:(NSString*)folderName;
+ (NSString*) getFolderPath:(NSString*)folderName;
// image, save and read
+ (NSString*) saveImage:(UIImage*)image;
+ (UIImage*) getImage:(NSString*)imageName;
// audio, save and read
+ (NSString*) saveAudio:(NSData*)audioDate;
+ (NSData*) getAudio:(NSString*)audioName;
// basic information management for profiles
+ (BOOL) setKey:(NSString*)key withValue:(NSObject*)value;
+ (NSObject*) getValueOfKey:(NSString*)key;
@end