summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/libkyahoo/yabentry.h
blob: 14cacef88e3ba7991b2aa6b601eb33300a6ae52b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
    yabentry.h - Encapsulate Yahoo Adressbook information

    Copyright (c) 2005 AndrĂ© Duffeck <[email protected]>
    Kopete (c) 2002-2006 by the Kopete developers <[email protected]>

    *************************************************************************
    *                                                                       *
    * This library is free software; you can redistribute it and/or         *
    * modify it under the terms of the GNU Lesser General Public            *
    * License as published by the Free Software Foundation; either          *
    * version 2 of the License, or (at your option) any later version.      *
    *                                                                       *
    *************************************************************************
*/
#ifndef YABEntry_H
#define YABEntry_H

#include <kdebug.h>
#include <tqdatetime.h>
#include <tqdom.h>

struct YABEntry
{
	enum Source { SourceYAB, SourceContact };

	// Personal
	TQString		firstName;
	TQString		secondName;
	TQString		lastName;
	TQString		nickName;
	TQString		title;

	// Primary Information	
	TQString		phoneMobile;
	TQString		email;
	TQString		yahooId;
	int		YABId;
	Source		source;

	// Additional Information
	TQString		pager;
	TQString		fax;
	TQString		additionalNumber;
	TQString		altEmail1;
	TQString		altEmail2;
	TQString		imAIM;
	TQString		imICQ;
	TQString		imMSN;
	TQString		imGoogleTalk;
	TQString		imSkype;
	TQString		imIRC;
	TQString		imQQ;

	// Private Information
	TQString		privateAdress;
	TQString		privateCity;
	TQString		privateState;
	TQString		privateZIP;
	TQString		privateCountry;
	TQString		privatePhone;
	TQString		privateURL;
		
	// Work Information
	TQString		corporation;
	TQString		workAdress;
	TQString		workCity;
	TQString		workState;
	TQString		workZIP;
	TQString		workCountry;
	TQString		workPhone;
	TQString		workURL;

	// Miscellaneous
	TQDate		birthday;
	TQDate		anniversary;
	TQString		notes;
	TQString		additional1;
	TQString		additional2;
	TQString		additional3;
	TQString		additional4;

	
	void fromTQDomElement( const TQDomElement &e );
	void fromTQDomDocument( const TQDomDocument &e );
	void fillTQDomElement( TQDomElement &e ) const;

	void dump() const;
};

#endif