home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / KBackgroundIface.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  2.3 KB  |  76 lines

  1. /**
  2.  * DCOP interface for the background manager.
  3.  */
  4.  
  5. #ifndef __KBackgroundIface_h__
  6. #define __KBackgroundIface_h__
  7.  
  8. #include <dcopobject.h>
  9. #include <qcolor.h>
  10.  
  11. class KBackgroundIface : virtual public DCOPObject
  12. {
  13.     K_DCOP
  14. public:
  15.  
  16. k_dcop:
  17.     /** Reread the configuration */
  18.     virtual void configure() = 0;
  19.  
  20.     /** Enable/disable export of the background pixmap. */
  21.     virtual void setExport(int xport) = 0;
  22.  
  23.     /** Returns the export desktop pixmap state. */
  24.     virtual bool isExport() = 0;
  25.  
  26.     /** Enable/disable common desktop background. */
  27.     virtual void setCommon(int common) = 0;
  28.  
  29.     /** Returns the common desktop background state. */
  30.     virtual bool isCommon() = 0;
  31.  
  32.     /** Change caching behaviour.
  33.      * @param bLimit Limit cache if not equal to zero.
  34.      * @param size Cache size in kilobytes. */
  35.     virtual void setCache(int bLimit, int size) = 0;
  36.  
  37.     /** Change the wallpaper.
  38.      * @param desk desktop number, or 0 for the current visible desktop.
  39.      * @param wallpaper The (local) path to the wallpaper.
  40.      * @param mode The tiling mode. */
  41.     virtual void setWallpaper(int desk, QString wallpaper, int mode) = 0;
  42.  
  43.     /** Change the wallpaper.
  44.      * @param wallpaper The (local) path to the wallpaper.
  45.      * @param mode The tiling mode. */
  46.     virtual void setWallpaper(QString wallpaper, int mode) = 0;
  47.  
  48.     /** Set color.
  49.      * @param c The color.
  50.      * @param isColorA true for foreground and false for background color. */
  51.     virtual void setColor(const QColor &c, bool isColorA) = 0;
  52.  
  53.     /** Change the wallpaper in "multi mode". */
  54.     virtual void changeWallpaper() = 0;
  55.  
  56.     /** Enable/disable desktop background. */
  57.     virtual void setBackgroundEnabled(const bool enable) = 0;
  58.  
  59.     /** Return the current wallpaper for specified desk.
  60.      * @param desk desktop number, or 0 for the current visible desktop.
  61.      */
  62.     virtual QString currentWallpaper( int desk ) = 0;
  63.  
  64.     /** Return the wallpaper list for specified desk.
  65.      * @param desk desktop number, or 0 for the current visible desktop.
  66.      */
  67.     virtual QStringList wallpaperList(int desk) = 0;
  68.  
  69.     /** Return the wallpaper files for specified desk.
  70.      * @param desk desktop number, or 0 for the current visible desktop.
  71.      */
  72.     virtual QStringList wallpaperFiles(int desk) = 0;
  73. };
  74.  
  75. #endif // __KBackgroundIface_h__
  76.