Library Mobile API Reference for iPad  MicroStrategy 2019
Service.h
Go to the documentation of this file.
1 /*
2  * Service.h
3  * MSTR Foundation
4  *
5  * Created by Amirali Charania on 2/20/09.
6  * Copyright 2009 MicroStrategy. All rights reserved.
7  *
8  */
9 #import <Foundation/Foundation.h>
10 
11 @protocol Service;
12 @class MSTRError;
13 
14 @protocol ServiceHandler <NSObject>
15 
16 -(void)onSuccess: (id)data service:(id<Service>)service;
17 -(void)onFailure: (MSTRError*)error service:(id<Service>)service;
18 
19 @optional
20 -(void)onProgress:(long long)loadedSize total:(long long)totalSize service:(id<Service>)service;
21 - (void) onCancel:(id<Service>)service;
22 
23 
24 @end
25 
26 @protocol Service <NSObject>
27 
28 -(void)start;
29 -(void)cancel;
30 -(NSInteger)state;
31 -(void)setHandler:(id<ServiceHandler>)_handler;
32 -(void)interrupt;
33 @end
Definition: MSTRError.h:19