Merged / backported [13642] and [13643]: Don't enable alpha in the color picker until...
[adiumx.git] / Source / ESFileTransferProgressRow.h
blobbe6eda1313bdec12fce69529eabf1dd8df10e520
1 /*
2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
4 *
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11 * Public License for more details.
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 #import "ESFileTransferController.h"
18 #import <Adium/AIObject.h>
20 @class ESFileTransfer, ESFileTransferProgressView;
21 @protocol FileTransferDelegate;
23 @interface ESFileTransferProgressRow : AIObject<FileTransferDelegate> {
24 ESFileTransfer *fileTransfer;
25 id owner;
27 UInt32 lastUpdateTick;
28 unsigned long long lastBytesSent;
29 unsigned long long size;
30 NSString *sizeString;
31 BOOL forceUpdate;
33 IBOutlet ESFileTransferProgressView *view;
36 + (ESFileTransferProgressRow *)rowForFileTransfer:(ESFileTransfer *)inFileTransfer withOwner:(id)owner;
38 - (IBAction)stopResumeAction:(id)sender;
39 - (IBAction)revealAction:(id)sender;
40 - (IBAction)openFileAction:(id)sender;
42 - (ESFileTransfer *)fileTransfer;
43 - (ESFileTransferProgressView *)view;
45 - (void)fileTransferProgressView:(ESFileTransferProgressView *)inView
46 heightChangedFrom:(float)oldHeight
47 to:(float)newHeight;
49 - (FileTransferType)type;
51 - (NSMenu *)menuForEvent:(NSEvent *)theEvent;
53 @end