~ubuntu-branches/ubuntu/saucy/kopete/saucy-proposed

« back to all changes in this revision

Viewing changes to protocols/yahoo/libkyahoo/yabentry.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-06-21 02:22:39 UTC
  • Revision ID: package-import@ubuntu.com-20130621022239-63l3zc8p0nf26pt6
Tags: upstream-4.10.80
Import upstream version 4.10.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    yabentry.h - Encapsulate Yahoo Adressbook information
 
3
 
 
4
    Copyright (c) 2005 André Duffeck <duffeck@kde.org>
 
5
    Kopete (c) 2002-2006 by the Kopete developers <kopete-devel@kde.org>
 
6
 
 
7
    *************************************************************************
 
8
    *                                                                       *
 
9
    * This library is free software; you can redistribute it and/or         *
 
10
    * modify it under the terms of the GNU Lesser General Public            *
 
11
    * License as published by the Free Software Foundation; either          *
 
12
    * version 2 of the License, or (at your option) any later version.      *
 
13
    *                                                                       *
 
14
    *************************************************************************
 
15
*/
 
16
#ifndef YABEntry_H
 
17
#define YABEntry_H
 
18
 
 
19
#include <kdebug.h>
 
20
#include <qdatetime.h>
 
21
#include <qdom.h>
 
22
 
 
23
struct YABEntry
 
24
{
 
25
        enum Source { SourceYAB, SourceContact };
 
26
 
 
27
        // Personal
 
28
        QString         firstName;
 
29
        QString         secondName;
 
30
        QString         lastName;
 
31
        QString         nickName;
 
32
        QString         title;
 
33
 
 
34
        // Primary Information  
 
35
        QString         phoneMobile;
 
36
        QString         email;
 
37
        QString         yahooId;
 
38
        int             YABId;
 
39
        Source          source;
 
40
 
 
41
        // Additional Information
 
42
        QString         pager;
 
43
        QString         fax;
 
44
        QString         additionalNumber;
 
45
        QString         altEmail1;
 
46
        QString         altEmail2;
 
47
        QString         imAIM;
 
48
        QString         imICQ;
 
49
        QString         imMSN;
 
50
        QString         imGoogleTalk;
 
51
        QString         imSkype;
 
52
        QString         imIRC;
 
53
        QString         imQQ;
 
54
 
 
55
        // Private Information
 
56
        QString         privateAdress;
 
57
        QString         privateCity;
 
58
        QString         privateState;
 
59
        QString         privateZIP;
 
60
        QString         privateCountry;
 
61
        QString         privatePhone;
 
62
        QString         privateURL;
 
63
                
 
64
        // Work Information
 
65
        QString         corporation;
 
66
        QString         workAdress;
 
67
        QString         workCity;
 
68
        QString         workState;
 
69
        QString         workZIP;
 
70
        QString         workCountry;
 
71
        QString         workPhone;
 
72
        QString         workURL;
 
73
 
 
74
        // Miscellaneous
 
75
        QDate           birthday;
 
76
        QDate           anniversary;
 
77
        QString         notes;
 
78
        QString         additional1;
 
79
        QString         additional2;
 
80
        QString         additional3;
 
81
        QString         additional4;
 
82
 
 
83
        
 
84
        void fromQDomElement( const QDomElement &e );
 
85
        void fromQDomDocument( const QDomDocument &e );
 
86
        void fillQDomElement( QDomElement &e ) const;
 
87
 
 
88
        void dump() const;
 
89
};
 
90
 
 
91
#endif