Home · All Classes · All Namespaces · Modules · Functions · Files
pending-send-message.h
1 
23 #ifndef _TelepathyQt_pending_send_message_h_HEADER_GUARD_
24 #define _TelepathyQt_pending_send_message_h_HEADER_GUARD_
25 
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29 
30 #include <TelepathyQt/PendingOperation>
31 #include <TelepathyQt/Types>
32 
33 class QDBusPendingCallWatcher;
34 class QString;
35 
36 namespace Tp
37 {
38 
39 class Message;
40 
41 class TP_QT_EXPORT PendingSendMessage : public PendingOperation
42 {
43  Q_OBJECT
44  Q_DISABLE_COPY(PendingSendMessage)
45 
46 public:
48 
49  TextChannelPtr channel() const;
50 
51  ContactMessengerPtr messenger() const;
52 
53  QString sentMessageToken() const;
54  Message message() const;
55 
56 private Q_SLOTS:
57  TP_QT_NO_EXPORT void onTextSent(QDBusPendingCallWatcher *watcher);
58  TP_QT_NO_EXPORT void onMessageSent(QDBusPendingCallWatcher *watcher);
59  TP_QT_NO_EXPORT void onCDMessageSent(QDBusPendingCallWatcher *watcher);
60 
61 private:
62  friend class TextChannel;
63  friend class ContactMessenger;
64 
65  TP_QT_NO_EXPORT PendingSendMessage(const TextChannelPtr &channel,
66  const Message &message);
67  TP_QT_NO_EXPORT PendingSendMessage(const ContactMessengerPtr &messenger,
68  const Message &message);
69 
70  struct Private;
71  friend struct Private;
72  Private *mPriv;
73 };
74 
75 } // Tp
76 
77 #endif
The TextChannel class represents a Telepathy channel of type Text.
Definition: text-channel.h:40
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
The ContactMessenger class provides an easy way to send text messages to a contact and also track sen...
Definition: contact-messenger.h:40
The PendingSendMessage class represents the parameters of and the reply to an asynchronous message se...
Definition: pending-send-message.h:41
The Message class represents a Telepathy message in a TextChannel.
Definition: message.h:44


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.6.1