You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
1.6 KiB

//
// MOBFDataService.h
// MOBFoundation
//
// Created by vimfung on 15-1-21.
// Copyright (c) 2015年 MOB. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
*
*/
@interface MOBFDataService : NSObject
/**
*
*
* @return
*/
+ (MOBFDataService *)sharedInstance;
/**
*
*
* @param data
* @param key
*/
- (void)setSharedData:(id)data forKey:(NSString *)key;
/**
*
*
* @param key
*
* @return
*/
- (id)sharedDataForKey:(NSString *)key;
/**
*
*
* @param domain
*/
- (void)beginCacheDataTransForDomain:(NSString *)domain;
/**
*
*
* @param domain
*/
- (void)endCacheDataTransForDomain:(NSString *)domain;
/**
*
*
* @param data
* @param key
* @param domain
*/
- (void)setCacheData:(id)data forKey:(NSString *)key domain:(NSString *)domain;
/**
*
*
* @param key
* @param domain
*
* @return
*/
- (id)cacheDataForKey:(NSString *)key domain:(NSString *)domain;
/**
*
*/
- (void)beginSecureDataTrans;
/**
*
*/
- (void)endSecureDataTrans;
/**
*
*
* @param data
* @param key
*/
- (void)setSecureData:(id)data forKey:(NSString *)key;
/**
*
*
* @param key
*
* @return
*/
- (id)secureDataForKey:(NSString *)key;
@end