mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-03 17:54:48 +03:00
121577340a
Don't use absolute paths for resources
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)setShareMenuTitle:(NSString*)title;
|
|
- (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
|