MeVisLabToolboxReference
MeVis/Foundation/Sources/OSXSupport/macDockTile.h
Go to the documentation of this file.
00001 // **InsertLicense** code author="Felix Ritter" version="1.0"
00002 
00006 
00007 #ifndef __macDockTile_H
00008 #define __macDockTile_H
00009 #if defined(__APPLE__)
00010 
00011 #include <ApplicationServices/ApplicationServices.h>
00012 #include <string>
00013 
00014 namespace macx {
00015   
00016   // Forward declaration
00017   class DockTilePrivate;
00018   
00020   class DockTile
00021   {
00022   public:
00024     static void setApplicationIcon(CGImageRef img);
00025 
00027 
00029     static void setApplicationIcon(const std::string &iconFileName);
00030     
00032 
00034     static CGImageRef applicationIcon(unsigned int widthAndHeight = 0);
00035     
00037     static void addBadgeToApplicationIcon(CGImageRef img, const std::string &name);
00038     
00040     static void removeBadgeFromApplicationIcon(const std::string &name);
00041     
00043     static void removeAllBadgesFromApplicationIcon();
00044     
00045   private:
00046     static DockTilePrivate *priv();
00047   };
00048 
00049 }
00050 
00051 #endif  // __APPLE__
00052 #endif  // __macDockTile_H