00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc 00008 * 123 Front Street West, Suite 1401 00009 * Toronto, Ontario 00010 * Canada M5J 2M2 00011 * 416-504-9876 00012 * 00013 * NAME: FS_TempFileManager.h ( FS Library, C++) 00014 * 00015 * COMMENTS: 00016 */ 00017 00018 #ifndef __FS_TempFileManager__ 00019 #define __FS_TempFileManager__ 00020 00021 #include "FS_API.h" 00022 00023 class UT_StringArray; 00024 00025 /// This class provides an interface to query information about temporary files 00026 /// maintained by the "temp:" handler. 00027 class FS_API FS_TempFileManager 00028 { 00029 public: 00030 /// Return the number of temporary file handles 00031 static int entries(); 00032 00033 /// Close & remove all temporary files. This may not actually cause the 00034 /// file to be deleted. Since there may be streams which still reference 00035 /// the file, the file will stay in existence until all references are 00036 /// closed. However, this will cause all files to be deleted from the temp 00037 /// file cache. 00038 /// The function returns the number of files deleted. 00039 static int deleteAllFiles(); 00040 00041 /// Close and remove a single temporary file. Please see @c 00042 /// deleteTempFiles() for details. 00043 static bool deleteFile(const char *name); 00044 00045 /// Return the list of all temporary files 00046 static void getFileList(UT_StringArray &files); 00047 }; 00048 00049 #endif
1.5.9