//$Id: CCompDir.idl,v 1.7 2005/05/14 23:29:42 markus Exp $ //PROJECT : DirComp //SUBSYSTEM : CORBA //REFERENCES : //TODO : //BUGS : //REVISION : $Revision: 1.7 $ //AUTHOR : Markus Schwab //CREATED : 19.1.2001 //COPYRIGHT : Copyright (C) 2001 - 2005 // This program 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 of the License, or // (at your option) any later version. // This program 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; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "CGP/CDirSrch.idl" interface CCompareDirs { void compare (); boolean getResult (out CFile original, out CFile compare, out unsigned long status); // Set further parameters void addOption (in unsigned long option); void removeOption (in unsigned long option); void toggleOption (in unsigned long option); void setOriginalDir (in CDirectorySearch dir); void setCompareDir (in CDirectorySearch dir); // void setBeginTime (in time_t time); // void setEndTime (in time_t time); boolean setBeginTime (in string time); boolean setEndTime (in string time); void addIncludeFiles (in string incl); void addExcludeFiles (in string excl); void addIncludeDirs (in string incl); void addExcludeDirs (in string excl); void clearFiles (); void clearDirectories (); CDirectorySearch makeSearchObject (in string dir); // Options for comparison const unsigned long NO_OPTION = 0; const unsigned long OPT_SEARCHSUBDIRS = 1; const unsigned long OPT_NOCHANGED = 2; const unsigned long OPT_CHECKCONTENTS = 4; const unsigned long OPT_NODIRCOMP = 8; const unsigned long OPT_NONEWDEL = 16; const unsigned long OPT_IGNORETIMESTAMP = 32; const unsigned long OPT_EQUAL = 64; const unsigned long OPT_CHECKHIDDEN = 128; // Possible results (of difference between files) enum diff { DIR_YOUNGER, DIR_OLDER, DIR_DIFFERENT, DIR_EQUAL, DIR_DELETED, DIR_NEW }; };