//
//  APTextManager.h  v1.0
//
//  AppsPanel
//
//  Created by apnl05 on 22/05/13.
//  Copyright (c) 2013 Nomeo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@protocol APTextManagerDelegate;

@interface APTextManager : NSObject

#if __has_feature(objc_arc_weak)
@property (weak) id<APTextManagerDelegate> delegate;
#elif __has_feature(objc_arc)
@property (unsafe_unretained) id<APTextManagerDelegate> delegate;
#else
@property (assign) id<APTextManagerDelegate> delegate;
#endif

+ (id)sharedInstance;
+ (void)setDefaultTextDictionary:(NSString *)langues;
+ (NSInteger)numberOfKeys;
+ (NSString *)stringForKey:(NSString*) key;

@end

/*
 * Delegate avec méthodes optionnelles
 */
@protocol APTextManagerDelegate <NSObject>
@optional
//Called after the request Failed
- (void)textManagerFailedDownload;
//Called after the request Failed
- (void)textManagerFinishedDownload;
@end

