LibreOffice Module unotools (master) 1
Namespaces | Functions
tempfile.cxx File Reference
#include <sal/config.h>
#include <cassert>
#include <utility>
#include <com/sun/star/io/BufferSizeExceededException.hpp>
#include <com/sun/star/io/NotConnectedException.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <unotools/tempfile.hxx>
#include <rtl/ustring.hxx>
#include <o3tl/safeint.hxx>
#include <osl/mutex.hxx>
#include <osl/detail/file.h>
#include <osl/file.hxx>
#include <tools/time.hxx>
#include <tools/debug.hxx>
#include <tools/Guid.hxx>
#include <comphelper/DirectoryHelper.hxx>
#include <unistd.h>
Include dependency graph for tempfile.cxx:

Go to the source code of this file.

Namespaces

namespace  utl
 

Functions

static OUString utl::getParentName (std::u16string_view aFileName)
 
static bool utl::ensuredir (const OUString &rUnqPath)
 
static OUString utl::ConstructTempDir_Impl (const OUString *pParent, bool bCreateParentDirs)
 
static OUString utl::lcl_createName (std::u16string_view rLeadingChars, Tokens &tokens, std::u16string_view pExtension, const OUString *pParent, bool bDirectory, bool bKeep, bool bLock, bool bCreateParentDirs)
 
static OUString utl::CreateTempName_Impl (const OUString *pParent, bool bKeep, bool bDir=true)
 
static OUString utl::CreateTempNameFast ()
 
OUString utl::CreateTempName ()
 Only create a "physical" file name for a temporary file that would be valid at that moment. More...
 
OUString utl::CreateTempURL (const OUString *pParent, bool bDirectory)
 
OUString utl::CreateTempURL (std::u16string_view rLeadingChars, bool _bStartWithZero=true, std::u16string_view pExtension={}, const OUString *pParent=nullptr, bool bCreateParentDirs=false)
 Same as above; additionally the name starts with some given characters followed by a counter ( example: rLeadingChars="abc" means "abc0","abc1" and so on, depending on existing files in the folder ). More...
 
OUString utl::SetTempNameBaseDirectory (const OUString &rBaseName)
 The TempNameBaseDirectory is a subfolder in the folder that is passed as a "physical" file name in the SetTempNameBaseDirectory method. More...
 
OUString utl::GetTempNameBaseDirectory ()
 

Variable Documentation

◆ globalValue

sal_uInt32 globalValue
staticprivate

Definition at line 231 of file tempfile.cxx.

◆ m_count

sal_uInt32 m_count
private

Definition at line 233 of file tempfile.cxx.

◆ m_show

bool m_show
private

Definition at line 198 of file tempfile.cxx.

◆ m_value

sal_uInt32 m_value
private

Definition at line 197 of file tempfile.cxx.