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.
151 lines
3.8 KiB
151 lines
3.8 KiB
13 years ago
|
//
|
||
|
// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
|
||
|
// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
|
||
|
// may also apply
|
||
|
|
||
|
|
||
|
// Generated by preSip
|
||
12 years ago
|
// module tdeabc version KDE 3.5.3
|
||
13 years ago
|
|
||
|
|
||
|
// This software is free software; you can redistribute it and/or
|
||
|
// modify it under the terms of the GNU General Public License as
|
||
|
// published by the Free Software Foundation; either version 2 of
|
||
|
// the License, or (at your option) any later version.
|
||
|
//
|
||
|
// This software 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 General Public License for more details.
|
||
|
//
|
||
|
// You should have received a copy of the GNU General Public
|
||
|
// License along with this library; see the file COPYING.
|
||
|
// If not, write to the Free Software Foundation, Inc.,
|
||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
|
||
12 years ago
|
namespace TDEABC
|
||
13 years ago
|
{
|
||
|
|
||
|
class Address
|
||
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <address.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
12 years ago
|
typedef TQValueList<TDEABC::Address> List;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
typedef TQValueList<int> TypeList;
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
enum Type
|
||
|
{
|
||
|
Dom,
|
||
|
Intl,
|
||
|
Postal,
|
||
|
Parcel,
|
||
|
Home,
|
||
|
Work,
|
||
|
Pref
|
||
|
};
|
||
|
|
||
|
Address ();
|
||
|
Address (int);
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
12 years ago
|
bool operator == (const TDEABC::Address&) const;
|
||
|
bool operator != (const TDEABC::Address&) const;
|
||
13 years ago
|
%End
|
||
|
|
||
|
bool isEmpty () const;
|
||
|
void clear ();
|
||
13 years ago
|
void setId (const TQString&);
|
||
|
TQString id () const;
|
||
13 years ago
|
void setType (int);
|
||
|
int type () const;
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
TQString typeLabel () const;
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
void setPostOfficeBox (const TQString&);
|
||
|
TQString postOfficeBox () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
static TQString postOfficeBoxLabel ();
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
void setExtended (const TQString&);
|
||
|
TQString extended () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
static TQString extendedLabel ();
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
void setStreet (const TQString&);
|
||
|
TQString street () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
static TQString streetLabel ();
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
void setLocality (const TQString&);
|
||
|
TQString locality () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
static TQString localityLabel ();
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
void setRegion (const TQString&);
|
||
|
TQString region () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
static TQString regionLabel ();
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
void setPostalCode (const TQString&);
|
||
|
TQString postalCode () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
static TQString postalCodeLabel ();
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
void setCountry (const TQString&);
|
||
|
TQString country () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
static TQString countryLabel ();
|
||
13 years ago
|
%End
|
||
|
|
||
13 years ago
|
void setLabel (const TQString&);
|
||
|
TQString label () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
static TQString labelLabel ();
|
||
12 years ago
|
static TDEABC::Address::TypeList typeList ();
|
||
13 years ago
|
static TQString typeLabel (int);
|
||
13 years ago
|
%End
|
||
|
|
||
|
void dump () const;
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
13 years ago
|
TQString formattedAddress (const TQString& = TQString ::null , const TQString& = TQString ::null ) const;
|
||
|
static TQString countryToISO (const TQString&);
|
||
|
static TQString ISOtoCountry (const TQString&);
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
}; // class Address
|
||
|
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
12 years ago
|
//igx TQDataStream& operator << (TQDataStream&, const TDEABC::Address&);
|
||
|
//igx TQDataStream& operator >> (TQDataStream&, TDEABC::Address&);
|
||
13 years ago
|
%End
|
||
|
|
||
12 years ago
|
}; // namespace TDEABC
|
||
13 years ago
|
|