/* * Copyright (C) by Jocelyn Turcotte * * 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 @protocol SyncClientProxyDelegate - (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 - (void)sendMessage:(NSData*)msg; @end @interface SyncClientProxy : NSObject { NSString *_serverName; NSDistantObject *_remoteEnd; } @property (weak) id 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