#include "SwifTools/Dock/MacOSXDock.h"

#include <AppKit/AppKit.h>
#include <Cocoa/Cocoa.h>

#include "Swiften/Base/String.h"

namespace Swift {

MacOSXDock::MacOSXDock(CocoaApplication*) {
}

void MacOSXDock::setMessage(const String& label) {
	NSString *labelString = [[NSString alloc] initWithUTF8String: label.getUTF8Data()];
	[[NSApp dockTile] setBadgeLabel: labelString];
	[labelString release];
	[NSApp requestUserAttention: NSInformationalRequest];
}

}