summaryrefslogtreecommitdiff
path: root/QSDeliciousPrefPane.m
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 /QSDeliciousPrefPane.m
parent685a4d4b33991a315060145724d794d709ec6f3c (diff)
Make the provider functional
Diffstat (limited to 'QSDeliciousPrefPane.m')
-rw-r--r--QSDeliciousPrefPane.m39
1 files changed, 0 insertions, 39 deletions
diff --git a/QSDeliciousPrefPane.m b/QSDeliciousPrefPane.m
deleted file mode 100644
index f0dde4e..0000000
--- a/QSDeliciousPrefPane.m
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-#import "QSDeliciousPrefPane.h"
-#import <QSCore/QSResourceManager.h>
-
-@implementation QSDeliciousPrefPane
-- (id)init {
- self = [super initWithBundle:[NSBundle bundleForClass:[QSDeliciousPrefPane class]]];
- if (self) {
- }
- return self;
-}
-
-- (NSImage *) icon{
- return [[NSBundle bundleForClass:[self class]] imageNamed:@"del.icio.us"];
-}
-
-- (NSString *) mainNibName{
- return @"QSDeliciousPrefPane";
-}
-
-- (void)awakeFromNib{
- NSString *account=[[NSUserDefaults standardUserDefaults] objectForKey:@"QSDeliciousUserName"];
- NSURL *url=[NSURL URLWithString:[NSString stringWithFormat:@"http://%@@del.icio.us/",account]];
- NSString *password=[url keychainPassword];
- if (account)[userField setStringValue:account];
- if (password)[passField setStringValue:password];
-}
-
-- (IBAction)savePassword:(id)sender{
- NSString *account=[userField stringValue];
- NSString *pass=[passField stringValue];
-
- NSURL *url=[NSURL URLWithString:[NSString stringWithFormat:@"http://%@:%@@del.icio.us/",account,pass]];
- if ([pass length])
- [url addPasswordToKeychain];
-}
-
-@end