diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-06 23:03:04 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-06 23:03:04 +0200 |
| commit | 6f7a0e57ce0650c9e91b15e75ec9a0bb85f6ddb6 (patch) | |
| tree | b4d623e54f552488408f13e5f6ad5bed54643a29 /QSBookmarkProviderFactory.h | |
| parent | 685a4d4b33991a315060145724d794d709ec6f3c (diff) | |
Make the provider functional
Diffstat (limited to 'QSBookmarkProviderFactory.h')
| -rw-r--r-- | QSBookmarkProviderFactory.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/QSBookmarkProviderFactory.h b/QSBookmarkProviderFactory.h new file mode 100644 index 0000000..e2e694b --- /dev/null +++ b/QSBookmarkProviderFactory.h @@ -0,0 +1,28 @@ +// +// QSBookmarkProviderFactory.h +// QSDeliciousPlugIn +// +// Factory for managing bookmark providers +// + +#import <Foundation/Foundation.h> +#import "QSBookmarkProvider.h" +#import "SocialSite.h" + +@interface QSBookmarkProviderFactory : NSObject + +@property (nonatomic, strong, readonly) NSArray<id<QSBookmarkProvider>> *providers; + ++ (instancetype)sharedFactory; + +/** + * Get the appropriate provider for the given site configuration + */ +- (id<QSBookmarkProvider>)providerForSite:(SocialSite)site username:(NSString *)username password:(NSString *)password host:(NSString *)host; + +/** + * Get all available providers + */ +- (NSArray<id<QSBookmarkProvider>> *)allProviders; + +@end
\ No newline at end of file |