~ubuntu-branches/ubuntu/vivid/manaplus/vivid-proposed

« back to all changes in this revision

Viewing changes to src/gui/widgets/tabs/chat/channeltab.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2014-10-27 18:15:40 UTC
  • mfrom: (1.1.37)
  • Revision ID: package-import@ubuntu.com-20141027181540-jvyjufjo9igruklh
Tags: 1.4.10.25-1
[ Andrei Karas ]
* Updated debian/copyright.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  The ManaPlus Client
 
3
 *  Copyright (C) 2009  The Mana World Development Team
 
4
 *  Copyright (C) 2009-2010  The Mana Developers
 
5
 *  Copyright (C) 2011-2014  The ManaPlus Developers
 
6
 *
 
7
 *  This file is part of The ManaPlus Client.
 
8
 *
 
9
 *  This program is free software; you can redistribute it and/or modify
 
10
 *  it under the terms of the GNU General Public License as published by
 
11
 *  the Free Software Foundation; either version 2 of the License, or
 
12
 *  any later version.
 
13
 *
 
14
 *  This program is distributed in the hope that it will be useful,
 
15
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 *  GNU General Public License for more details.
 
18
 *
 
19
 *  You should have received a copy of the GNU General Public License
 
20
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
 */
 
22
 
 
23
#ifndef GUI_WIDGETS_TABS_CHAT_CHANNELTAB_H
 
24
#define GUI_WIDGETS_TABS_CHAT_CHANNELTAB_H
 
25
 
 
26
#include "gui/widgets/tabs/chat/chattab.h"
 
27
 
 
28
/**
 
29
 * A tab for a chat channel.
 
30
 */
 
31
class ChannelTab final : public ChatTab
 
32
{
 
33
    public:
 
34
        ChannelTab(const Widget2 *const widget,
 
35
            const std::string &channel);
 
36
 
 
37
        A_DELETE_COPY(ChannelTab)
 
38
 
 
39
        ~ChannelTab();
 
40
 
 
41
    protected:
 
42
        void handleInput(const std::string &msg) override final;
 
43
 
 
44
        bool handleCommand(const std::string &restrict type,
 
45
                           const std::string &restrict args) override final;
 
46
 
 
47
        void getAutoCompleteCommands(StringVect& commands)
 
48
                                     const override final;
 
49
};
 
50
 
 
51
#endif  // GUI_WIDGETS_TABS_CHAT_CHANNELTAB_H