mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-15 02:01:38 +03:00
3b20684dc7
Having to update the plugins to add a submenu in the context menu, it's more cost-effective to remove support for legacy macOS versions than implementing and testing this setup.
43 lines
1.4 KiB
Objective-C
43 lines
1.4 KiB
Objective-C
/*
|
|
* Copyright (C) by Jocelyn Turcotte <jturcotte@woboq.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.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
@protocol SyncClientProxyDelegate <NSObject>
|
|
- (void)setResultForPath:(NSString*)path result:(NSString*)result;
|
|
- (void)reFetchFileNameCacheForPath:(NSString*)path;
|
|
- (void)registerPath:(NSString*)path;
|
|
- (void)unregisterPath:(NSString*)path;
|
|
- (void)setString:(NSString*)key value:(NSString*)value;
|
|
- (void)connectionDidDie;
|
|
@end
|
|
|
|
@protocol ChannelProtocol <NSObject>
|
|
- (void)sendMessage:(NSData*)msg;
|
|
@end
|
|
|
|
@interface SyncClientProxy : NSObject <ChannelProtocol>
|
|
{
|
|
NSString *_serverName;
|
|
NSDistantObject <ChannelProtocol> *_remoteEnd;
|
|
}
|
|
|
|
@property (weak) id <SyncClientProxyDelegate> delegate;
|
|
|
|
- (instancetype)initWithDelegate:(id)arg1 serverName:(NSString*)serverName;
|
|
- (void)start;
|
|
- (void)askOnSocket:(NSString*)path query:(NSString*)verb;
|
|
- (void)askForIcon:(NSString*)path isDirectory:(BOOL)isDir;
|
|
@end
|