/* Copyright (C) 2000-2003 Max Berger This file is part of vCardReceiver, written for the OpenGroupware project (OGo) OGo is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. OGo is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with OGo; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // $Id$ #include "vCardReceiverDatabaseHandler.h" #include @implementation vCardReceiverDatabaseHandler - (id)init { if ((self = [super init])) { self->remoteTarget = nil; } return self; } - (void) dealloc { [self->remoteTarget release]; [super dealloc]; } - (void)setRemoteTarget:(NSString *)_remoteTarget { ASSIGNCOPY(self->remoteTarget,_remoteTarget); } - (NSString *)databaseLocation { return @"./Console/Contacts"; } - (NSString *)databaseDescription { return @"Contacts printed on console"; } - (NSString *)syncWithLocation { return remoteTarget; } - (NSString *)lastAnchorWith:(NSString *)remoteDatabase { return @""; } - (NSString *)nextAnchorWith:(NSString *)remoteDatabase { NSString *nextAnchor; nextAnchor = [[NSString alloc]initWithString:@"blabla"]; return [nextAnchor autorelease]; } - (int) syncAlert { return SYNCML_SYNC_ALERT_REFRESH_FROM_SERVER; } - (NSArray *)allUIDs { // FIXME return nil; } - (NSString *)representationForUID:(id)uid { // FIXME return nil; } - (NSString *)addElement:(NSString *)data withUri:(NSString *)location { printf("%s\n",[data UTF8String]); return location; } - (BOOL)deleteAll { return YES; } @end /* vCardReceiverDatabaseHandler */