Develop and Download Open Source Software

Browse Subversion Repository

Contents of /src/globals.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16 - (show annotations) (download) (as text)
Thu Jul 15 14:45:50 2010 UTC (13 years, 10 months ago) by mip
File MIME type: text/x-chdr
File size: 1784 byte(s)
New thread post feature
and some bug fix

1 #ifndef __GLOBALS_H__
2 #define __GLOBALS_H__
3
4 #include "qstring.h"
5 #include <QList>
6
7 // Application constants
8
9 const QString APPNAME = "kimo2ch";
10 const QString RESOURCEDIR = "/usr/share/" + APPNAME + "/";
11 const QString userAgent = QString("Monazilla/1.00 (%1)").arg(APPNAME);
12 const QString POSTCGI = "test/bbs.cgi";
13
14 // File names
15 const QString PREFSFILENAME = "." + APPNAME + ".rc";
16 const QString ABONEFILENAME = "kimo2chAbone.xml";
17 const QString FAVORITESFILENAME = APPNAME + "Favorites.xml";
18 const QString BBSMENUFILENAME = "bbsmenu.html";
19
20 // Server response labels
21
22 const QString SUBMITLABEL = QString::fromUtf8("書き込む");
23 const QString NEWTHREADSUBMITLABEL = QString::fromUtf8("新規スレッド作成");
24 const QString COOKIEACCEPTLABEL = QString::fromUtf8("上記全てを承諾して書き込む");
25 const QString POSTCOMPLETE = QString::fromUtf8("書きこみが終わりました");
26 const QString SERVERBUSY = QString::fromUtf8("お茶でも");
27 const QString SERVERERROR = QString::fromUtf8("ERROR");
28 const QString COOKIECONFIRM = QString::fromUtf8("書き込み確認");
29
30 // Text constants
31 const QString ABONETEXT = QString::fromUtf8("あぼーん");
32
33 // Initial preferences
34
35 const QString initialBoardListURL = "http://menu.2ch.net/bbsmenu.html";
36
37 const int rowHeight = 16;
38
39 enum threadColumn
40 {
41 urlCol = 0,
42 subjectCol,
43 countCol,
44 newCol
45 };
46
47 // Buffer size
48 const int CACHESIZE = 512 * 1024;
49
50 // Timeout
51 const int SUBJECTTIMEOUTSEC = 5;
52
53 // #define QT_CP932_SUPPORT
54 #define ICONVBUFSIZE 512*1024*2 // iconv buffer suze for convert Shift_JIS to UTF-8
55
56 // Abone data
57 typedef struct aboneData
58 {
59 QStringList aboneWordList;
60 QHash<QString, bool> aboneId;
61 QHash<QString, bool> aboneName;
62 QHash<QString, bool> aboneMail;
63 } aboneData;
64
65 #endif // __GLOBALS_H__

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26