00001
00021
00022
00023
00024
00025 #ifndef __SYNFIG_IPC_H
00026 #define __SYNFIG_IPC_H
00027
00028
00029
00030 #include <synfig/smartfile.h>
00031 #include <glibmm/main.h>
00032 #include <synfig/string.h>
00033
00034
00035
00036
00037
00038
00039
00040 namespace studio {
00041
00042 class IPC
00043 {
00044 private:
00045
00046 int fd;
00047 synfig::SmartFILE file;
00048
00049 bool fifo_activity(Glib::IOCondition cond);
00050
00051 public:
00052 IPC();
00053 ~IPC();
00054
00055 static synfig::String fifo_path();
00056 static synfig::SmartFILE make_connection();
00057
00058 static bool process_command(const synfig::String& cmd);
00059 };
00060
00061 };
00062
00063
00064
00065 #endif