Advertisement
arkader

Singleton Reachability.h

Aug 29th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //  CRReachability.h
  3. //  ChloeRoses
  4. //
  5. //  Created by Emal Saifi [DAN-PARIS] on 13/08/13.
  6. //  Copyright (c) 2013 Emal Saifi [DAN-PARIS]. All rights reserved.
  7. //
  8.  
  9. #import <Foundation/Foundation.h>
  10. #import "Reachability.h"
  11.  
  12. @interface CRReachability : NSObject
  13.  
  14. // Reachability
  15. @property (nonatomic, retain) Reachability * reach;
  16.  
  17. // BOOL
  18. @property (nonatomic, assign) BOOL isConnectionReachable;
  19.  
  20. // Delegate
  21. @property (nonatomic, assign) id delegate;
  22.  
  23. + (id)sharedManager;
  24.  
  25. - (void)startReachability;
  26. - (void)stopReachability;
  27.  
  28. @end
  29.  
  30. @protocol CRReachabilityDelegate <NSObject>
  31.  
  32. @optional
  33.  
  34. -(void)crReachability:(CRReachability *)sender getConnectionReachable:(BOOL) isConnectionReachable;
  35.  
  36. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement