File indexing completed on 2024-05-12 16:25:01

0001 /*
0002  * SPDX-FileCopyrightText: 2014 YANG Qiao <yangqiao0505@me.com>
0003  *                         2021 Lucas Wang <lucas.wang@tuta.io>
0004  *
0005  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006  */
0007 
0008 // Original header below:
0009 //Copyright 27/4/14  YANG Qiao yangqiao0505@me.com
0010 //kdeconnect is distributed under two licenses.
0011 //
0012 //* The Mozilla Public License (MPL) v2.0
0013 //
0014 //or
0015 //
0016 //* The General Public License (GPL) v2.1
0017 //
0018 //----------------------------------------------------------------------
0019 //
0020 //Software distributed under these licenses is distributed on an "AS
0021 //IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
0022 //implied. See the License for the specific language governing rights
0023 //and limitations under the License.
0024 //kdeconnect is distributed under both the GPL and the MPL. The MPL
0025 //notice, reproduced below, covers the use of either of the licenses.
0026 //
0027 //----------------------------------------------------------------------
0028 
0029 #import <Foundation/Foundation.h>
0030 #import "NetworkPackage.h"
0031 #import "BaseLink.h"
0032 #import "LinkProviderDelegate.h"
0033 
0034 @interface BaseLinkProvider : NSObject
0035 
0036 @property(nonatomic) id<LinkProviderDelegate> _linkProviderDelegate;
0037 @property(nonatomic) NSMutableDictionary<NSString *, BaseLink *> *connectedLinks;
0038 
0039 - (BaseLinkProvider *)initWithDelegate:(id<LinkProviderDelegate>)linkProviderDelegate;
0040 - (void) onStart;
0041 - (void) onRefresh;
0042 - (void) onStop;
0043 - (void) onNetworkChange;
0044 - (void) onLinkDestroyed:(BaseLink*)link;
0045 
0046 @end