File indexing completed on 2024-05-12 16:25:01
0001 /* 0002 * SPDX-FileCopyrightText: 2014 YANG Qiao <yangqiao0505@me.com> 0003 * 2020 Weixuan Xiao <veyx.shaw@gmail.com> 0004 * 2021 Lucas Wang <lucas.wang@tuta.io> 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0007 */ 0008 0009 // Original header below: 0010 //Copyright 27/4/14 YANG Qiao yangqiao0505@me.com 0011 //kdeconnect is distributed under two licenses. 0012 // 0013 //* The Mozilla Public License (MPL) v2.0 0014 // 0015 //or 0016 // 0017 //* The General Public License (GPL) v2.1 0018 // 0019 //---------------------------------------------------------------------- 0020 // 0021 //Software distributed under these licenses is distributed on an "AS 0022 //IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 0023 //implied. See the License for the specific language governing rights 0024 //and limitations under the License. 0025 //kdeconnect is distributed under both the GPL and the MPL. The MPL 0026 //notice, reproduced below, covers the use of either of the licenses. 0027 // 0028 //---------------------------------------------------------------------- 0029 0030 #import <Foundation/Foundation.h> 0031 #import "NetworkPackage.h" 0032 #import "LinkDelegate.h" 0033 0034 @interface BaseLink : NSObject 0035 0036 @property(nonatomic) NSString* _deviceId; 0037 @property(nonatomic, weak) id<LinkDelegate> linkDelegate; 0038 //@property(nonatomic) SecKeyRef _publicKey; 0039 0040 - (BaseLink *)init:(NSString *)deviceId setDelegate:(id<LinkDelegate>)linkDelegate; 0041 - (BOOL) sendPackage:(NetworkPackage*)np tag:(long)tag; 0042 - (void) disconnect; 0043 0044 @end;