46#include <tdeio/netaccess.h>
47#include <tdemessagebox.h>
69 size_t crlf2lf( char* str, const size_t strLen );
77 TQCString lf2crlf( const TQCString & src );
83 TQByteArray lf2crlf( const TQByteArray & src );
88 TQCString CString( const DwString& str );
93 TQByteArray ByteArray( const DwString& str );
98 DwString dwString( const TQCString& str );
103 DwString dwString( const TQByteArray& str );
113 arr.duplicate( cstr.data(), cstr.size()-1 );
126 TQByteArray arr = cstr;
128 arr.resize( arr.size() - 1 );
139 str.resize( str.size() + 1 );
149 const int len = arr.size();
150 result.resize( len + 1 );
151 memcpy(result.data(), arr.data(), len);
158 void append( TQByteArray& that, const TQByteArray& str );
163 void append( TQByteArray& that, const char* str );
168 void append( TQByteArray& that, const TQCString& str );
170 void insert( TQByteArray& that, uint index, const char* s );
183 :m_object( o ), m_disabled( false )
189 m_object->deleteLater();
192 void setDisabled( bool v )
202 inline bool checkOverwrite( const KURL& url, TQWidget* w )
204 if ( TDEIO::NetAccess::exists( url, false , w ) ) {
205 if ( KMessageBox::Cancel ==
206 KMessageBox::warningContinueCancel(
208 i18n( "A file named \"%1\" already exists. "
209 "Are you sure you want to overwrite it?" ).arg( url.prettyURL() ),
210 i18n( "Overwrite File?" ),
211 i18n( "&Overwrite" ) ) )
A LaterDeleter is intended to be used with the RAII ( Resource Acquisition is Initialization ) paradi...
TQByteArray byteArrayFromTQCStringNoDetach(TQCString &cstr) Creates a TQByteArray from a TQCString without detaching (duplicating the data).
void restoreTQCString(TQCString &str) Restore the TQCString after byteArrayFromTQCStringNoDetach modified it.
void append(TQByteArray &that, const TQByteArray &str) Append a bytearray to a bytearray.
TQByteArray ByteArray(const DwString &str) Construct a TQByteArray from a DwString.
void setFromTQCString(TQByteArray &arr, const TQCString &cstr) Fills a TQByteArray from a TQCString - removing the trailing null.
void setFromByteArray(TQCString &cstr, const TQByteArray &arr) Fills a TQCString from a TQByteArray - adding the trailing null.
TQCString lf2crlf(const TQCString &src) Convert "\n" line endings to "\r\n".
TQCString CString(const DwString &str) Construct a TQCString from a DwString.
DwString dwString(const TQCString &str) Construct a DwString from a TQCString.
size_t crlf2lf(char *str, const size_t strLen) Convert all sequences of "\r\n" (carriage return followed by a line feed) to a single "\n" (line feed...
|