File indexing completed on 2024-04-21 15:42:59
0001 /* 0002 * This file is part of TelepathyLoggerQt 0003 * 0004 * Copyright (C) 2011 Collabora Ltd. <http://www.collabora.co.uk/> 0005 * 0006 * This library is free software; you can redistribute it and/or modify 0007 * it under the terms of the GNU Lesser General Public License as published 0008 * by the Free Software Foundation; either version 2.1 of the License, or 0009 * (at your option) any later version. 0010 * 0011 * This program is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 * GNU General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU Lesser General Public License 0017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 */ 0019 #ifndef _TelepathyLoggerQt_call_event_h_HEADER_GUARD_ 0020 #define _TelepathyLoggerQt_call_event_h_HEADER_GUARD_ 0021 0022 #include "event.h" 0023 #include <TelepathyLoggerQt_export.h> 0024 0025 #include <TelepathyQt/Constants> 0026 0027 namespace Tpl 0028 { 0029 0030 /*! 0031 * \headerfile call-event.h <TelepathyLoggerQt/CallEvent> 0032 * \brief Represents a call log event. 0033 */ 0034 class TELEPATHY_LOGGER_QT_EXPORT CallEvent : public Event 0035 { 0036 public: 0037 0038 /*! 0039 * \brief Returns the call duration 0040 */ 0041 QTime duration() const; 0042 0043 /*! 0044 * \brief Returns the actor that caused the call to end 0045 */ 0046 EntityPtr endActor() const; 0047 0048 /*! 0049 * \brief Returns the reason for which this call was ended. 0050 */ 0051 Tp::CallStateChangeReason endReason() const; 0052 0053 /*! 0054 * \brief Returns a string representing a D-Bus error that gives more details about 0055 * the end reason 0056 */ 0057 QString detailedEndReason() const; 0058 0059 private: 0060 QTELEPATHYLOGGERQT_WRAPPER(CallEvent, Event) 0061 }; 0062 0063 } //namespace 0064 0065 #endif