Monotone-Parent: 6e63aa35b75cb2a5e245d67e76efebed7505a5e5

Monotone-Revision: 54c370d8695670130da586c6fb0f9e2d3da6057c

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-04-15T21:15:10
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2010-04-15 21:15:10 +00:00
parent ae70528294
commit 8625d73754
8 changed files with 39 additions and 154 deletions

View File

@ -1,36 +0,0 @@
/* SOGoToolBackup.h - this file is part of SOGo
*
* Copyright (C) 2009 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This file 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef SOGOTOOLBACKUP_H
#define SOGOTOOLBACKUP_H
#import "SOGoTool.h"
@interface SOGoToolBackup : SOGoTool
{
NSString *directory;
NSArray *userIDs;
}
@end
#endif /* SOGOTOOLBACKUP_H */

View File

@ -42,7 +42,7 @@
#import <SOGo/SOGoUserProfile.h>
#import <SOGo/SOGoUserSettings.h>
#import "SOGoToolBackup.h"
#import "SOGoTool.h"
/* TODO:
- handle database connectivity errors
@ -50,6 +50,14 @@
- allow more than one user specifier on the command-line
*/
@interface SOGoToolBackup : SOGoTool
{
NSString *directory;
NSArray *userIDs;
}
@end
@implementation SOGoToolBackup
+ (NSString *) command

View File

@ -1,35 +0,0 @@
/* SOGoToolCheckDoubles.h - this file is part of SOGo
*
* Copyright (C) 2009 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This file 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef SOGOTOOLCHECKDOUBLES_H
#define SOGOTOOLCHECKDOUBLES_H
#import "SOGoTool.h"
@interface SOGoToolCheckDoubles : SOGoTool
{
unsigned int warningLimit;
}
@end
#endif /* SOGOTOOLCHECKDOUBLES_H */

View File

@ -37,7 +37,14 @@
#import <GDLContentStore/GCSFolderManager.h>
#import <GDLContentStore/GCSFolder.h>
#import "SOGoToolCheckDoubles.h"
#import "SOGoTool.h"
@interface SOGoToolCheckDoubles : SOGoTool
{
unsigned int warningLimit;
}
@end
@implementation SOGoToolCheckDoubles

View File

@ -1,32 +0,0 @@
/* SOGoToolRemoveDoubles.h - this file is part of SOGo
*
* Copyright (C) 2009 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This file 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef SOGOTOOLREMOVEDOUBLES_H
#define SOGOTOOLREMOVEDOUBLES_H
#import "SOGoTool.h"
@interface SOGoToolRemoveDoubles : SOGoTool
@end
#endif /* SOGOTOOLREMOVEDOUBLES_H */

View File

@ -46,7 +46,7 @@
#import <GDLContentStore/GCSFolderManager.h>
#import <GDLContentStore/GCSFolder.h>
#import "SOGoToolRemoveDoubles.h"
#import "SOGoTool.h"
@interface NGVList (RemoveDoubles)
@ -74,6 +74,9 @@
@end
@interface SOGoToolRemoveDoubles : SOGoTool
@end
@implementation SOGoToolRemoveDoubles
+ (NSString *) command

View File

@ -1,46 +0,0 @@
/* SOGoToolRestore.h - this file is part of SOGo
*
* Copyright (C) 2009 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This file 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef SOGOTOOLRESTORE_H
#define SOGOTOOLRESTORE_H
#import "SOGoTool.h"
typedef enum SOGoToolRestoreMode {
SOGoToolRestoreFolderMode,
SOGoToolRestoreFolderDestructiveMode,
SOGoToolRestoreListFoldersMode,
SOGoToolRestorePreferencesMode
} SOGoToolRestoreMode;
@interface SOGoToolRestore : SOGoTool
{
NSString *directory;
NSString *userID;
NSString *restoreFolder;
BOOL destructive; /* destructive mode not handled */
SOGoToolRestoreMode restoreMode;
}
@end
#endif /* SOGOTOOLRESTORE_H */

View File

@ -42,7 +42,7 @@
#import <SOGo/SOGoUserProfile.h>
#import <SOGo/SOGoUserSettings.h>
#import "SOGoToolRestore.h"
#import "SOGoTool.h"
/* TODO:
- respond to "--help restore"
@ -51,7 +51,23 @@
- write methods in GDLContentStore to get/update displayname
and storing roles */
#import <NGExtensions/NGBundleManager.h>
typedef enum SOGoToolRestoreMode {
SOGoToolRestoreFolderMode,
SOGoToolRestoreFolderDestructiveMode,
SOGoToolRestoreListFoldersMode,
SOGoToolRestorePreferencesMode
} SOGoToolRestoreMode;
@interface SOGoToolRestore : SOGoTool
{
NSString *directory;
NSString *userID;
NSString *restoreFolder;
BOOL destructive; /* destructive mode not handled */
SOGoToolRestoreMode restoreMode;
}
@end
@implementation SOGoToolRestore