mark one item as possibly done :)
[simple-launcher] / launchable-item.h
index 13afb72..895e528 100644 (file)
@@ -1,6 +1,6 @@
 // This file is a part of Simple Launcher
 //
-// Copyright (C) 2006, Mikhail Sobolev
+// Copyright (C) 2006, 2007, Mikhail Sobolev
 //
 // Simple Launcher is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License version 2 as published by
 #ifndef __LAUNCHABLE_ITEM_H__
 #define __LAUNCHABLE_ITEM_H__
 
-#include <vector>
-#include <string>
-
 #include <libosso.h>
 
 #include "launcher-item.h"
 
-// TODO: or better use inheritance?
-class LaunchableItem {
+class LaunchableItem : public LauncherItem {
 public:
-  LaunchableItem(LauncherItem *, bool);
- ~LaunchableItem();
-
-  GdkPixbuf *getIcon(int icon_size) const { return myItem->getIcon(icon_size); }
-
-  const std::string& getName() const { return myItem->getName(); }
-  const std::string& getComment() const { return myItem->getComment(); }
-  const std::string& getService() const { return myItem->getService(); }
-
-  bool isEnabled(void) const { return myEnabled; }
-
-  void enable() { myEnabled = true; }
-  void disable() { myEnabled = false; }
-  void toggle() { myEnabled = !myEnabled; }
-
   bool activate(osso_context_t *);
-
-private:
-  LauncherItem *myItem;
-  bool myEnabled;
 };
 
-typedef std::vector<std::pair<std::string, LaunchableItem *> > LaunchableItems;
-
 #endif
 
 // vim:ts=2:sw=2:et