Fixed naming convention and started writing unit tests
[situare] / src / ui / avatarimage.h
1 /*
2    Situare - A location system for Facebook
3    Copyright (C) 2010  Ixonos Plc. Authors:
4
5        Jukka Saastamoinen - jukka.saastamoinen@ixonos.com
6        Jussi Laitinen - jussi.laitinen@ixonos.com
7
8    Situare is free software; you can redistribute it and/or
9    modify it under the terms of the GNU General Public License
10    version 2 as published by the Free Software Foundation.
11
12    Situare is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with Situare; if not, write to the Free Software
19    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
20    USA.
21 */
22
23 #ifndef SITUAREUSER_H
24 #define SITUAREUSER_H
25
26 #include <QLabel>
27 #include <QPixmap>
28
29 /**
30 * @brief AvatarImage class creates avatar images.
31 *
32 * @class AvatarImage avatarimage.h "ui/avatarimage.h"
33 */
34 class AvatarImage
35 {
36 /*******************************************************************************
37 * MEMBER FUNCTIONS AND SLOTS
38 ******************************************************************************/
39 public:
40     /**
41     * @brief Create avatar image from pixmap.
42     *
43     * @param image image to use in avatar image
44     */
45     static QPixmap create(const QPixmap &image);
46 };
47
48 #endif // AVATARIMAGE_H