1 /* SOGoToolRestore.h - this file is part of SOGo 2 * Header to allow subclassing of SOGoToolRestore class 3 * 4 * Copyright (C) 2015 Javier Amor Garcia 5 * 6 * This file is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2, or (at your option) 9 * any later version. 10 * 11 * This file is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; see the file COPYING. If not, write to 18 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 19 * Boston, MA 02111-1307, USA. 20 */ 21 22 23 #import "SOGoTool.h" 24 25 typedef enum SOGoToolRestoreMode { 26 SOGoToolRestoreFolderMode, 27 SOGoToolRestoreFolderDestructiveMode, 28 SOGoToolRestoreListFoldersMode, 29 SOGoToolRestorePreferencesMode 30 } SOGoToolRestoreMode; 31 32 @interface SOGoToolRestore : SOGoTool 33 { 34 NSString *directory; 35 NSString *userID; 36 NSString *filename; 37 NSString *restoreFolder; 38 BOOL destructive; /* destructive mode not handled */ 39 SOGoToolRestoreMode restoreMode; 40 } 41 42 - (BOOL) fetchUserID: (NSString *) identifier; 43 - (BOOL) createFolder: (NSString *) folder 44 withFM: (GCSFolderManager *) fm; 45 - (BOOL) restoreDisplayName: (NSString *) newDisplayName 46 ofFolder: (GCSFolder *) gcsFolder 47 withFM: (GCSFolderManager *) fm; 48 49 @end 50