Update Finnish translation
[nomnom.git] / src / settings / nsettings.h
blob0bf6bb5dfabc9946076fc9b545c7034fee770def
1 /* NomNom
2 * Copyright (C) 2011 Toni Gundogdu <legatvs@gmail.com>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef nsettings_h
19 #define nsettings_h
21 class QString;
23 namespace nn
26 // Edit "key_strings" in nsettings.cpp also.
27 typedef enum
29 // Commands
30 ParseUsing = 0x00,
31 ParseUsingOther,
32 DownloadUsing,
33 DownloadUsingOther,
34 PlayUsing,
35 PlayUsingOther,
36 FeedUsing,
37 FeedUsingOther,
38 // Download
39 FilenameFormat,
40 FilenameRegExp,
41 SaveMediaDirectory,
42 // Proxy
43 ProxyType,
44 ProxyHost,
45 ProxyPort,
46 // Options: Appearance
47 CustomApplicationIcon,
48 CustomBusyIcon,
49 CustomErrorIcon,
50 Language,
51 // Options: Behaviour
52 KeepApplicationWindowOnTop,
53 PlayWhenDoneDownloading,
54 AskWhereToSaveMediaFile,
55 ClearURLRecordAtExit,
56 ReplaceExistingMedia,
57 GetBestFormat,
58 // Options: Systray
59 ShowInTrayIcon,
60 TerminateInstead,
61 StartInTrayIcon,
62 // Counter, must be last.
63 _MAX_KEYS
64 } SettingKey;
66 typedef enum { AutodetectProxy=0x00, NoProxy, ManualProxy } ProxyMode;
68 bool format_filename(const QString& regexp,
69 const QString& title,
70 const QString& media_id,
71 const QString& domain,
72 const QString& suffix,
73 QString& result);
75 } // namespace nn
77 #endif
79 /* vim: set ts=2 sw=2 tw=72 expandtab: */