2023-11-21 10:56:34 +03:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2023 by Claudio Cambra <claudio.cambra@nextcloud.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ClientCommunicationProtocol_h
|
|
|
|
#define ClientCommunicationProtocol_h
|
|
|
|
|
2023-11-21 11:29:25 +03:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
2023-11-21 10:56:34 +03:00
|
|
|
@protocol ClientCommunicationProtocol
|
|
|
|
|
2023-12-05 11:05:25 +03:00
|
|
|
- (void)getExtensionAccountIdWithCompletionHandler:(void(^)(NSString *extensionAccountId, NSError *error))completionHandler;
|
2023-11-21 10:56:34 +03:00
|
|
|
- (void)configureAccountWithUser:(NSString *)user
|
2024-09-30 11:04:48 +03:00
|
|
|
userId:(NSString *)userId
|
2023-11-21 10:56:34 +03:00
|
|
|
serverUrl:(NSString *)serverUrl
|
|
|
|
password:(NSString *)password;
|
|
|
|
- (void)removeAccountConfig;
|
2024-01-03 12:16:00 +03:00
|
|
|
- (void)createDebugLogStringWithCompletionHandler:(void(^)(NSString *debugLogString, NSError *error))completionHandler;
|
2024-02-05 13:42:12 +03:00
|
|
|
- (void)getFastEnumerationStateWithCompletionHandler:(void(^)(BOOL enabled, BOOL set))completionHandler;
|
2024-02-05 13:50:29 +03:00
|
|
|
- (void)setFastEnumerationEnabled:(BOOL)enabled;
|
2023-11-21 10:56:34 +03:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* ClientCommunicationProtocol_h */
|