Home · All Classes · All Namespaces · Modules · Functions · Files

call-event-item.h

00001 /*
00002  * This file is part of TelepathyQt4Yell Models
00003  *
00004  * Copyright (C) 2010 Collabora Ltd. <http://www.collabora.co.uk/>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 #ifndef _TelepathyQt4Yell_Models_call_event_item_h_HEADER_GUARD_
00022 #define _TelepathyQt4Yell_Models_call_event_item_h_HEADER_GUARD_
00023 
00024 #ifndef IN_TELEPATHY_QT4_YELL_MODELS_HEADER
00025 #error IN_TELEPATHY_QT4_YELL_MODELS_HEADER
00026 #endif
00027 
00028 #include <TelepathyQt4Yell/Models/EventItem>
00029 #include <TelepathyQt4Yell/Models/Global>
00030 #include <TelepathyQt4Yell/Constants>
00031 
00032 #include <TelepathyQt4/Types>
00033 
00034 #include <QDateTime>
00035 #include <QString>
00036 
00037 namespace Tpy
00038 {
00039 
00040 class TELEPATHY_QT4_YELL_MODELS_EXPORT CallEventItem : public EventItem
00041 {
00042     Q_OBJECT
00043     Q_DISABLE_COPY(CallEventItem)
00044 
00045 public:
00046     CallEventItem(const Tp::ContactPtr &sender,
00047         const Tp::ContactPtr &receiver, const QDateTime &time,
00048         const QTime &duration, Tp::ContactPtr &endActor,
00049         Tpy::CallStateChangeReason &endReason, const QString &detailedEndReason,
00050         QObject *parent = 0);
00051     virtual ~CallEventItem();
00052 
00053     QTime duration() const;
00054     Tp::ContactPtr endActor() const;
00055     Tpy::CallStateChangeReason endReason() const;
00056     QString detailedEndReason() const;
00057 
00058     bool missedCall() const;
00059     bool rejectedCall() const;
00060 
00061 private:
00062     struct Private;
00063     friend struct Private;
00064     Private *mPriv;
00065 };
00066 
00067 }
00068 
00069 #endif // _TelepathyQt4Yell_Models_call_event_item_h_HEADER_GUARD_


Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4-Yell 0.1.6