You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.0 KiB
65 lines
2.0 KiB
15 years ago
|
/*
|
||
13 years ago
|
This file is part of tdepim.
|
||
15 years ago
|
Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
|
||
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
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., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
|
*/
|
||
|
|
||
|
#ifndef KABC_GW_CONVERTER_H
|
||
|
#define KABC_GW_CONVERTER_H
|
||
|
|
||
14 years ago
|
#include <tqdatetime.h>
|
||
|
#include <tqstring.h>
|
||
15 years ago
|
|
||
|
#include "soapH.h"
|
||
|
|
||
|
class GWConverter
|
||
|
{
|
||
|
public:
|
||
|
GWConverter( struct soap* );
|
||
|
|
||
|
struct soap* soap() const;
|
||
|
|
||
14 years ago
|
static TQString stringToTQString( const std::string& );
|
||
|
static TQString stringToTQString( std::string* );
|
||
15 years ago
|
|
||
14 years ago
|
std::string* qStringToString( const TQString& );
|
||
|
char* qStringToChar( const TQString& );
|
||
15 years ago
|
|
||
14 years ago
|
char* qDateToChar( const TQDate& );
|
||
14 years ago
|
TQDate charToTQDate( const char * );
|
||
15 years ago
|
|
||
14 years ago
|
std::string* qDateToString( const TQDate &string );
|
||
14 years ago
|
TQDate stringToTQDate( std::string* );
|
||
15 years ago
|
|
||
14 years ago
|
char *qDateTimeToChar( const TQDateTime &dt, const TQString &timezone );
|
||
|
char *qDateTimeToChar( const TQDateTime &dt );
|
||
15 years ago
|
|
||
14 years ago
|
TQDateTime charToTQDateTime( const char *str );
|
||
|
TQDateTime charToTQDateTime( const char *str, const TQString &timezone );
|
||
15 years ago
|
|
||
14 years ago
|
std::string* qDateTimeToString( const TQDateTime &string, const TQString &timezone );
|
||
|
std::string* qDateTimeToString( const TQDateTime &string );
|
||
15 years ago
|
|
||
14 years ago
|
TQDateTime stringToTQDateTime( const std::string* );
|
||
15 years ago
|
|
||
14 years ago
|
bool emailsMatch( const TQString & email1, const TQString & email2 );
|
||
15 years ago
|
private:
|
||
|
struct soap* mSoap;
|
||
|
};
|
||
|
|
||
|
#endif
|