~ubuntu-branches/ubuntu/breezy/lurker/breezy

« back to all changes in this revision

Viewing changes to render/commands.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Meurer
  • Date: 2004-09-26 16:27:51 UTC
  • Revision ID: james.westby@ubuntu.com-20040926162751-z1ohcjltv7ojtg6z
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  $Id: commands.h,v 1.5 2004/08/20 02:42:45 terpstra Exp $
 
2
 *  
 
3
 *  commands.h - All the commands we support
 
4
 *  
 
5
 *  Copyright (C) 2002 - Wesley W. Terpstra
 
6
 *  
 
7
 *  License: GPL
 
8
 *  
 
9
 *  Authors: 'Wesley W. Terpstra' <wesley@terpstra.ca>
 
10
 *  
 
11
 *    This program is free software; you can redistribute it and/or modify
 
12
 *    it under the terms of the GNU General Public License as published by
 
13
 *    the Free Software Foundation; version 2.1.
 
14
 *    
 
15
 *    This program is distributed in the hope that it will be useful,
 
16
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
 *    GNU General Public License for more details.
 
19
 *    
 
20
 *    You should have received a copy of the GNU General Public License
 
21
 *    along with this program; if not, write to the Free Software
 
22
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
23
 */
 
24
 
 
25
#ifndef COMMANDS_H
 
26
#define COMMANDS_H
 
27
 
 
28
#include <esort.h>
 
29
#include <ConfigFile.h>
 
30
#include <vector>
 
31
 
 
32
#define _(x) x
 
33
 
 
34
struct Request
 
35
{
 
36
        string options;
 
37
        string language;
 
38
        string ext;
 
39
};
 
40
 
 
41
Request parse_request(const string& param);
 
42
 
 
43
int handle_message(const Config& c, ESort::Reader* r, const string& param);
 
44
int handle_thread (const Config& c, ESort::Reader* r, const string& param);
 
45
int handle_mindex (const Config& c, ESort::Reader* r, const string& param);
 
46
int handle_splash (const Config& c, ESort::Reader* r, const string& param);
 
47
int handle_search (const Config& c, ESort::Reader* r, const string& param);
 
48
int handle_attach (const Config& c, ESort::Reader* r, const string& param);
 
49
int handle_mbox   (const Config& c, ESort::Reader* r, const string& param);
 
50
int handle_list   (const Config& c, ESort::Reader* r, const string& param);
 
51
 
 
52
string redirect(const string& url);
 
53
string error(
 
54
        const string& main, 
 
55
        const string& sub, 
 
56
        const string& suggest);
 
57
 
 
58
using std::vector;
 
59
 
 
60
void tokenize(
 
61
        const string& str,
 
62
        vector<string>& tokens,
 
63
        const string& delimiters = " ");
 
64
 
 
65
#endif