00001 // -*- c++ -*- 00002 00003 /* 00004 * Author: Arvin Schnell <arvin@suse.de> 00005 * Maintainer: Arvin Schnell <arvin@suse.de> 00006 */ 00007 00008 00009 #ifndef SCRSubAgent_h 00010 #define SCRSubAgent_h 00011 00012 #include <y2/Y2Component.h> 00013 #include <scr/SCRAgent.h> 00014 00015 00016 class SCRSubAgent 00017 { 00018 00019 public: 00020 00024 SCRSubAgent (YCPPath, YCPValue); 00025 00029 ~SCRSubAgent (); 00030 00035 YCPValue mount (SCRAgent *parent); 00036 00041 void unmount (); 00042 00046 YCPPath get_path () const { return my_path; } 00047 00052 Y2Component * get_comp () const { return my_comp; } 00053 00057 friend int operator < (const SCRSubAgent *, const YCPPath &); 00058 00059 private: 00060 00064 YCPPath my_path; 00065 00070 YCPValue my_value; 00071 00075 Y2Component *my_comp; 00076 00077 SCRSubAgent (const SCRSubAgent &); // disallow 00078 void operator = (const SCRSubAgent &); // disallow 00079 00080 }; 00081 00082 00083 #endif // SCRSubAgent_h