Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 108 lines (91 sloc) 3.296 kB
76d2a5b @mstroeck
mstroeck authored
1 //
2 // ViennaApp.h
3 // Vienna
4 //
5 // Created by Steve on Tue Jul 06 2004.
6 // Copyright (c) 2004-2005 Steve Palmer. All rights reserved.
7 //
8 // Licensed under the Apache License, Version 2.0 (the "License");
9 // you may not use this file except in compliance with the License.
10 // You may obtain a copy of the License at
11 //
12 // http://www.apache.org/licenses/LICENSE-2.0
13 //
14 // Unless required by applicable law or agreed to in writing, software
15 // distributed under the License is distributed on an "AS IS" BASIS,
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 // See the License for the specific language governing permissions and
18 // limitations under the License.
19 //
20
21 #import <Cocoa/Cocoa.h>
22 #import <Carbon/Carbon.h>
23 #import "Folder.h"
24
25 // This is needed for iTunes-like buttons with different option-key personalities.
26 OSStatus keyPressed(EventHandlerCallRef nextHandler, EventRef theEvent, void *userData);
27
28 @interface ViennaApp : NSApplication
29
30 // Refresh commands
31 -(id)handleRefreshAllSubscriptions:(NSScriptCommand *)cmd;
32 -(id)handleRefreshSubscription:(NSScriptCommand *)cmd;
33
34 // Mark all articles read
35 -(id)handleMarkAllRead:(NSScriptCommand *)cmd;
36 -(id)handleMarkAllSubscriptionsRead:(NSScriptCommand *)cmd;
37
38 // Importing and exporting subscriptions
39 -(id)handleImportSubscriptions:(NSScriptCommand *)cmd;
40 -(id)handleExportSubscriptions:(NSScriptCommand *)cmd;
41
42 // New subscription
43 -(id)handleNewSubscription:(NSScriptCommand *)cmd;
44
45 // Compact database
46 -(id)handleCompactDatabase:(NSScriptCommand *)cmd;
47
48 // Empty trash
49 -(id)handleEmptyTrash:(NSScriptCommand *)cmd;
50
51 // Reset folder sort order
52 -(id)resetFolderSort:(NSScriptCommand *)cmd;
53
54 // General read-only properties.
55 -(NSString *)applicationVersion;
56 -(NSArray *)folders;
57 -(BOOL)isRefreshing;
58 -(int)totalUnreadCount;
59 -(NSString *)currentTextSelection;
60 -(NSString *)documentHTMLSource;
61
62 // Change folder selection
63 -(Folder *)currentFolder;
64 -(void)setCurrentFolder:(Folder *)newCurrentFolder;
65
66 // Current article
67 -(Article *)currentArticle;
68
69 // Preference getters
70 -(int)autoExpireDuration;
71 -(float)markReadInterval;
72 -(BOOL)readingPaneOnRight;
73 -(BOOL)refreshOnStartup;
74 -(BOOL)checkForNewOnStartup;
75 -(BOOL)openLinksInVienna;
76 -(BOOL)openLinksInBackground;
77 -(int)minimumFontSize;
78 -(BOOL)enableMinimumFontSize;
79 -(int)refreshFrequency;
80 -(NSString *)displayStyle;
81 -(NSString *)folderListFont;
82 -(int)folderListFontSize;
83 -(NSString *)articleListFont;
84 -(int)articleListFontSize;
85 -(BOOL)statusBarVisible;
86 -(BOOL)filterBarVisible;
87
88 // Preference setters
89 -(void)setAutoExpireDuration:(int)newDuration;
90 -(void)setMarkReadInterval:(float)newInterval;
91 -(void)setReadingPaneOnRight:(BOOL)flag;
92 -(void)setRefreshOnStartup:(BOOL)flag;
93 -(void)setCheckForNewOnStartup:(BOOL)flag;
94 -(void)setOpenLinksInVienna:(BOOL)flag;
95 -(void)setOpenLinksInBackground:(BOOL)flag;
96 -(void)setMinimumFontSize:(int)newSize;
97 -(void)setEnableMinimumFontSize:(BOOL)flag;
98 -(void)setRefreshFrequency:(int)newFrequency;
99 -(void)setDisplayStyle:(NSString *)newStyle;
100 -(void)setFolderListFont:(NSString *)newFontName;
101 -(void)setFolderListFontSize:(int)newFontSize;
102 -(void)setArticleListFont:(NSString *)newFontName;
103 -(void)setArticleListFontSize:(int)newFontSize;
104 -(void)setStatusBarVisible:(BOOL)flag;
105 -(void)setFilterBarVisible:(BOOL)flag;
106 @end
107
Something went wrong with that request. Please try again.