Changed Notification class to Message.
[situare] / src / ui / meetpeoplepanel.h
index 42d16c7..ec616ae 100644 (file)
@@ -1,3 +1,24 @@
+/*
+   Situare - A location system for Facebook
+   Copyright (C) 2010  Ixonos Plc. Authors:
+
+       Jussi Laitinen - jussi.laitinen@ixonos.com
+
+   Situare is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License
+   version 2 as published by the Free Software Foundation.
+
+   Situare is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with Situare; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
+   USA.
+*/
+
 #ifndef MEETPEOPLEPANEL_H
 #define MEETPEOPLEPANEL_H
 
@@ -46,6 +67,13 @@ private slots:
     void anyPanelClosed();
 
     /**
+    * @brief Called when message button is pressed.
+    *
+    * Calls requestMessageDialog with message receiver's ID and name
+    */
+    void messageButtonPressed();
+
+    /**
     * @brief Sets person's image.
     *
     * @param id image ID
@@ -80,6 +108,12 @@ signals:
     */
     void requestInterestingPeopleSearch();
 
+    /**
+    * @brief Requests message dialog.
+    * @param receiver receiver facebook ID and name
+    */
+    void requestMessageDialog(const QPair<QString, QString> &receiver);
+
 private:
     PersonListView *m_personListView;   ///< Interesting people list view
     ImageButton *m_chatButton;          ///< Chat button