blob: b2dcb6dbc081b3e8ff306d99eeee108c96019678 [file] [log] [blame]
kkostiuk74d1ae42021-06-17 11:10:15 -04001/*
2 * Copyright (C) 2021 - 2022 Savoir-faire Linux Inc.
3 *
4 * Author: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21#import <Foundation/Foundation.h>
22
23@protocol AdapterDelegate;
24
25@interface Adapter: NSObject
26
27@property (class, nonatomic, weak) id <AdapterDelegate> delegate;
28
29- (void)stop;
Kateryna Kostiuk19437652022-08-02 13:02:21 -040030- (BOOL)start:(NSString*)accountId;
kkostiuk74d1ae42021-06-17 11:10:15 -040031- (bool)downloadFileWithFileId:(NSString*)fileId
32 accountId:(NSString*)accountId
33 conversationId:(NSString*)conversationId
34 interactionId:(NSString*)interactionId
35 withFilePath:(NSString*)filePath;
36- (NSDictionary<NSString*, NSString*>*)decrypt:(NSString*)keyPath treated:(NSString*)treatedMessagesPath value: (NSDictionary*)value;
kkostiuke10e6572022-07-26 15:41:12 -040037-(NSString*)getNameFor:(NSString*)address accountId:(NSString*)accountId;
38-(NSString*)nameServerForAccountId:(NSString*)accountId;
kkostiuk74d1ae42021-06-17 11:10:15 -040039
40@end