summaryrefslogtreecommitdiffabout
path: root/libkcal/qtopiaformat.cpp
Side-by-side diff
Diffstat (limited to 'libkcal/qtopiaformat.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/qtopiaformat.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libkcal/qtopiaformat.cpp b/libkcal/qtopiaformat.cpp
index 0a4a031..2dfe1a4 100644
--- a/libkcal/qtopiaformat.cpp
+++ b/libkcal/qtopiaformat.cpp
@@ -8,37 +8,37 @@
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#include <qdatetime.h>
#include <qstring.h>
-#include <qptrlist.h>
+#include <q3ptrlist.h>
#include <qregexp.h>
#include <qclipboard.h>
#include <qfile.h>
-#include <qtextstream.h>
+#include <q3textstream.h>
#include <qxml.h>
#include <kdebug.h>
#include <klocale.h>
#include "calendar.h"
#include "calendarlocal.h"
#include "qtopiaformat.h"
using namespace KCal;
class QtopiaParser : public QXmlDefaultHandler
{
public:
QtopiaParser( Calendar *calendar ) : mCalendar( calendar ) {
@@ -296,38 +296,38 @@ bool QtopiaFormat::load( Calendar *calendar, const QString &fileName )
reader.setContentHandler( &handler );
return reader.parse( source );
}
bool QtopiaFormat::save( Calendar *calendar, const QString &fileName )
{
clearException();
QString text = toString( calendar );
if ( text.isNull() ) return false;
// TODO: write backup file
QFile file( fileName );
- if (!file.open( IO_WriteOnly ) ) {
+ if (!file.open( QIODevice::WriteOnly ) ) {
setException(new ErrorFormat(ErrorFormat::SaveError,
i18n("Could not open file '%1'").arg(fileName)));
return false;
}
- QTextStream ts( &file );
+ Q3TextStream ts( &file );
ts << text;
file.close();
return true;
}
bool QtopiaFormat::fromString( Calendar *, const QString & )
{
return false;
}
QString QtopiaFormat::toString( Calendar * )
{
return QString::null;
}