4 * Remote network object that is vended
6 * Original Author : Kent Sutherland <ksutherland@ithinksw.com>
7 * Responsibility : Kent Sutherland <ksutherland@ithinksw.com>
9 * Copyright (c) 2002 - 2003 iThink Software.
12 * This header defines the Objective-C protocol which all MenuTunes Remote
13 * plugins must implement. To build a remote, create a subclass of this
14 * object, and implement each method in the @protocol below.
18 #import "NetworkObject.h"
19 #import "MainController.h"
20 #import <ITMTRemote/ITMTRemote.h>
22 @implementation NetworkObject
24 - (ITMTRemote *)remote
26 return [[MainController sharedController] currentRemote];
29 - (NSString *)serverName
31 NSString *name = [[NSUserDefaults standardUserDefaults] stringForKey:@"sharedPlayerName"];
33 name = @"MenuTunes Shared Player";
37 - (BOOL)requiresPassword
39 return [[NSUserDefaults standardUserDefaults] boolForKey:@"enableSharingPassword"];
42 - (BOOL)sendPassword:(NSData *)password
44 if ([password isEqualToData:[[NSUserDefaults standardUserDefaults] dataForKey:@"sharedPlayerPassword"]]) {