| 1 | /* |
| 2 | * Copyright (C) 2013 Canonical Ltd. |
| 3 | * |
| 4 | * Contact: Alberto Mardegan <[email protected]> |
| 5 | * |
| 6 | * This file is part of lomiri-online-accounts-service |
| 7 | * |
| 8 | * This program is free software: you can redistribute it and/or modify it |
| 9 | * under the terms of the GNU General Public License version 3, as published |
| 10 | * by the Free Software Foundation. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranties of |
| 14 | * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 15 | * PURPOSE. See the GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along |
| 18 | * with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #ifndef OAU_INACTIVITY_TIMER_H |
| 22 | #define OAU_INACTIVITY_TIMER_Hcxx . . $ `online-accounts-service/src/inactivity-timer.h:22:9`! |
| 23 | |
| 24 | #include <QList> |
| 25 | #include <QObject> |
| 26 | #include <QTimer> |
| 27 | #include <QVariant> |
| 28 | |
| 29 | namespace OnlineAccountsUicxx . . $ OnlineAccountsUi/ { |
| 30 | |
| 31 | class InactivityTimercxx . . $ OnlineAccountsUi/InactivityTimer#: public QObjectcxx . . $ QObject# |
| 32 | { |
| 33 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 34 | |
| 35 | public: |
| 36 | InactivityTimercxx . . $ OnlineAccountsUi/InactivityTimer#InactivityTimer(1ee1e1ac455d3e6e).(int interval, QObjectcxx . . $ QObject# *parent = 0); |
| 37 | ~cxx . . $ OnlineAccountsUi/InactivityTimer#`~InactivityTimer`(ced63f7c635d850d).InactivityTimercxx . . $ OnlineAccountsUi/InactivityTimer#() {} |
| 38 | |
| 39 | void watchObjectcxx . . $ OnlineAccountsUi/InactivityTimer#watchObject(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *object); |
| 40 | |
| 41 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 42 | void timeoutcxx . . $ OnlineAccountsUi/InactivityTimer#timeout(49f6e7a06ebc5aa8).(); |
| 43 | |
| 44 | private Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!: |
| 45 | void onIdleChangedcxx . . $ OnlineAccountsUi/InactivityTimer#onIdleChanged(49f6e7a06ebc5aa8).(); |
| 46 | void onTimeoutcxx . . $ OnlineAccountsUi/InactivityTimer#onTimeout(49f6e7a06ebc5aa8).(); |
| 47 | |
| 48 | private: |
| 49 | bool allObjectsAreIdlecxx . . $ OnlineAccountsUi/InactivityTimer#allObjectsAreIdle(50ce9a9e25b4a850).() const; |
| 50 | |
| 51 | private: |
| 52 | QListcxx . . $ QList#<QObjectcxx . . $ QObject#*> m_watchedObjectscxx . . $ OnlineAccountsUi/InactivityTimer#m_watchedObjects.; |
| 53 | QTimercxx . . $ QTimer# m_timercxx . . $ OnlineAccountsUi/InactivityTimer#m_timer.; |
| 54 | int m_intervalcxx . . $ OnlineAccountsUi/InactivityTimer#m_interval.; |
| 55 | }; |
| 56 | |
| 57 | } // namespace |
| 58 | |
| 59 | #endif // OAU_INACTIVITY_TIMER_H |