summaryrefslogtreecommitdiff
path: root/QSBookmarkProvider.h
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-09-06 23:03:04 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-09-06 23:03:04 +0200
commit6f7a0e57ce0650c9e91b15e75ec9a0bb85f6ddb6 (patch)
treeb4d623e54f552488408f13e5f6ad5bed54643a29 /QSBookmarkProvider.h
parent685a4d4b33991a315060145724d794d709ec6f3c (diff)
Make the provider functional
Diffstat (limited to 'QSBookmarkProvider.h')
-rw-r--r--QSBookmarkProvider.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/QSBookmarkProvider.h b/QSBookmarkProvider.h
new file mode 100644
index 0000000..735ae82
--- /dev/null
+++ b/QSBookmarkProvider.h
@@ -0,0 +1,48 @@
+//
+// QSBookmarkProvider.h
+// QSDeliciousPlugIn
+//
+// Protocol for social bookmark providers
+//
+
+#import <Foundation/Foundation.h>
+#import "SocialSite.h"
+
+@class QSObject;
+
+@protocol QSBookmarkProvider <NSObject>
+
+@required
+/**
+ * Check if this provider can handle the given site configuration
+ */
+- (BOOL)canHandleSite:(SocialSite)site username:(NSString *)username password:(NSString *)password host:(NSString *)host;
+
+/**
+ * Fetch bookmarks for the given configuration
+ * Returns an NSArray of QSObject instances
+ */
+- (NSArray *)fetchBookmarksForSite:(SocialSite)site username:(NSString *)username password:(NSString *)password host:(NSString *)host includeTags:(BOOL)includeTags;
+
+/**
+ * Get the supported site for this provider
+ */
+- (SocialSite)supportedSite;
+
+/**
+ * Get display name for this provider
+ */
+- (NSString *)providerName;
+
+@optional
+/**
+ * Get bookmarks for a specific tag (used for child loading)
+ */
+- (NSArray *)fetchBookmarksForTag:(NSString *)tag site:(SocialSite)site username:(NSString *)username password:(NSString *)password host:(NSString *)host;
+
+/**
+ * Get the tag URL type identifier for this provider
+ */
+- (NSString *)tagURLType;
+
+@end \ No newline at end of file