diff options
Diffstat (limited to 'tools/inc/tools/tempfile.hxx')
-rw-r--r-- | tools/inc/tools/tempfile.hxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tools/inc/tools/tempfile.hxx b/tools/inc/tools/tempfile.hxx index 9e84adc96a51..8ef8c574cf7c 100644 --- a/tools/inc/tools/tempfile.hxx +++ b/tools/inc/tools/tempfile.hxx @@ -29,19 +29,18 @@ class TOOLS_DLLPUBLIC TempFile sal_Bool bKillingFileEnabled; public: - /** Create a temporary file or directory in a given folder or the default - tempfile folder. */ - TempFile( const String* pParent=NULL, sal_Bool bDirectory=sal_False ); + /** Create a temporary file in the default tempfile folder. */ + TempFile(); - /** Create a temporary file or directory in a given folder or the default - tempfile folder; its name starts with some given characters followed by - a counter ( example: rLeadingChars="abc" means "abc0","abc1" and so on, - depending on existing files in that folder ). + /** Create a temporary file in the default tempfile folder; its name starts + with some given characters followed by a counter ( example: + rLeadingChars="abc" means "abc0", "abc1" and so on, depending on + existing files in that folder ). The extension string may be f.e. ".txt" or "", if no extension string is given, ".tmp" is used. */ - TempFile( const String& rLeadingChars, const String* pExtension=NULL, const String* pParent=NULL, sal_Bool bDirectory=sal_False ); + TempFile( const String& rLeadingChars, const String* pExtension=NULL ); /** TempFile will be removed from disk in dtor if EnableKillingTempFile was called before. TempDirs will be removed recursively in that case. */ @@ -59,7 +58,7 @@ public: sal_Bool IsKillingFileEnabled() const { return bKillingFileEnabled; } /** Only create a name for a temporary file that would be valid at that moment. */ - static String CreateTempName( const String* pParent=NULL ); + static String CreateTempName(); }; #endif |