BIG deep clean

This commit is contained in:
2020-06-10 13:14:16 +03:00
parent f579718e0b
commit c59579d5d5
222 changed files with 2392 additions and 11600 deletions

View File

@@ -1,20 +1,20 @@
/*
PIP - Platform Independent Primitives
PIp System Daemon
Ivan Pelipenko peri4ko@yandex.ru
PIP - Platform Independent Primitives
PIP System Daemon
Ivan Pelipenko peri4ko@yandex.ru, Andrey Bychkov work.a.b@yandex.ru
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "pisingleapplication.h"
@@ -35,7 +35,6 @@ _Init _pisd_init;
PISystemMonitor sys_mon;
PIScreen * screen = 0;
//FileManager file_manager;
class MainMenu: public PITimer {
@@ -63,10 +62,6 @@ public:
mt->hide(); mt->name() = "local info";
center->addTile(mt); mtiles << mt;
//mt = tfm = daemon_.fm.tile();
mt->hide(); mt->name() = "file manager";
center->addTile(mt); mtiles << mt;
mt = tdaemon = daemon_.tile();
mt->hide(); mt->name() = "daemon";
center->addTile(mt); mtiles << mt;
@@ -129,7 +124,6 @@ public:
ret->addTile(diag);
diag->addTile(peerdiagdata_tl);
diag->addTile(peerdiagservice_tl);
// updatePeerInfo();
return ret;
}
PIScreenTile * peerTile() {
@@ -148,7 +142,6 @@ public:
ret->addTile(peerinfo_tl);
ret->addTile(addrs_tl);
ret->addTile(peermap_tl);
// updatePeerInfo();
return ret;
}
@@ -379,8 +372,6 @@ int main(int argc, char * argv[]) {
args << "-a" << sip;
if (!name.isEmpty())
args << "-n" << name;
//PIProcess p;
//p.exec("/bin/readlink", PIStringList() << "/proc/self/exe");
PIString exe;
#ifdef WINDOWS
exe = PISystemInfo::instance()->execCommand;
@@ -391,12 +382,10 @@ int main(int argc, char * argv[]) {
PIProcess::execIndependent(exe, args);
return 0;
}
//cli.addArgument("");
screen = new PIScreen(false);
screen->setMouseEnabled(true);
Daemon * daemon = new Daemon();
if (!sip.isEmpty()) daemon->setTcpServerIP(sip);
//sys_mon.startOnProcess(12404);
screen->enableExitCapture(PIKbdListener::F10);
if (!name.isEmpty())
daemon->changeName(pisd_prefix + name);