summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/yahoo/libkyahoo/yabentry.h
blob: 35620911379d313194821bc12a7e40a35826b455 (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 <duffeck@kde.org>
    Kopete (c) 2002-2006 by the Kopete developers <kopete-devel@kde.org>

    *************************************************************************
    *                                                                       *
    * 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
	QString		firstName;
	QString		secondName;
	QString		lastName;
	QString		nickName;
	QString		title;

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

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

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

	// Miscellaneous
	QDate		birthday;
	QDate		anniversary;
	QString		notes;
	QString		additional1;
	QString		additional2;
	QString		additional3;
	QString		additional4;

	
	void fromQDomElement( const TQDomElement &e );
	void fromQDomDocument( const TQDomDocument &e );
	void fillQDomElement( TQDomElement &e ) const;

	void dump() const;
};

#endif