22 #ifndef KPIM_ADDRESSEEVIEW_H
23 #define KPIM_ADDRESSEEVIEW_H
25 #include <tqcstring.h>
27 #include <tdeabc/addressee.h>
28 #include <ktextbrowser.h>
29 #include <tdeimproxy.h>
30 #include <tdemacros.h>
35 class TDEToggleAction;
43 class TDE_EXPORT AddresseeView : public KTextBrowser
54 AddresseeView( TQWidget *parent = 0, const char *name = 0,
55 TDEConfig *config = 0 );
64 void setAddressee( const TDEABC::Addressee& addr );
69 TDEABC::Addressee addressee() const;
83 DefaultLinks = AddressLinks | EmailLinks | PhoneLinks | URLLinks | IMLinks
90 void enableLinks( int linkMask );
105 DefaultFields = AddressFields | EmailFields | PhoneFields | URLFields
131 static TQString vCardAsHTML( const TDEABC::Addressee& addr, ::KIMProxy *proxy, LinkMask linkMask = DefaultLinks,
132 bool internalLoading = true, FieldMask fieldMask = DefaultFields );
139 static TQString pixmapAsDataUrl( const TQPixmap& pixmap );
142 void urlHighlighted( const TQString &url );
143 void emailHighlighted( const TQString &email );
144 void phoneNumberHighlighted( const TQString &number );
145 void faxNumberHighlighted( const TQString &number );
147 void highlightedMessage( const TQString &message );
149 void addressClicked( const TQString &uid );
152 virtual void urlClicked( const TQString &url );
153 virtual void emailClicked( const TQString &mail );
154 virtual void phoneNumberClicked( const TQString &number );
155 virtual void smsTextClicked( const TQString &number );
156 virtual void sendSMS( const TQString &number, const TQString &msg );
157 virtual void faxNumberClicked( const TQString &number );
158 virtual void imAddressClicked();
160 virtual TQPopupMenu *createPopupMenu( const TQPoint& );
163 void slotMailClicked( const TQString&, const TQString& );
164 void slotUrlClicked( const TQString& );
165 void slotHighlighted( const TQString& );
166 void slotPresenceChanged( const TQString & );
167 void slotPresenceInfoExpired();
168 void configChanged();
170 void data( TDEIO::Job*, const TQByteArray& );
171 void result( TDEIO::Job* );
179 TQString strippedNumber( const TQString &number );
184 TQByteArray mImageData;
185 TDEIO::Job *mImageJob;
187 TDEToggleAction *mActionShowBirthday;
188 TDEToggleAction *mActionShowAddresses;
189 TDEToggleAction *mActionShowEmails;
190 TDEToggleAction *mActionShowPhones;
191 TDEToggleAction *mActionShowURLs;
192 TDEToggleAction *mActionShowIMAddresses;
193 TDEToggleAction *mActionShowCustomFields;
195 TDEABC::Addressee mAddressee;
198 class AddresseeViewPrivate;
199 AddresseeViewPrivate *d;
200 ::KIMProxy *mKIMProxy;
TDEPIM classes for drag and drop of mails.
|