Mobile API Reference  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 
10 @protocol Service;
11 @class MSTRError;
12 
13 @protocol ServiceHandler <NSObject>
14 
15 -(void)onSuccess: (id)data service:(id<Service>)service;
16 -(void)onFailure: (MSTRError*)error service:(id<Service>)service;
17 
18 @optional
19 -(void)onProgress:(long long)loadedSize Total:(long long)totalSize service:(id<Service>)service;
20 - (void) onCancel:(id<Service>)service;
21 
22 
23 @end
24 
25 @protocol Service <NSObject>
26 
27 -(void)start;
28 -(void)cancel;
29 -(NSInteger)state;
30 -(void)setHandler:(id<ServiceHandler>)_handler;
31 -(void)interrupt;
32 @end
Definition: MSTRError.h:19