2019-01-10 Fred Gleason <fredg@paravelsystems.com>

* Refactored dropbox instance management to use multicast
	notifications.
This commit is contained in:
Fred Gleason
2019-01-10 18:11:18 -05:00
parent 5329189e89
commit 9e93dddb02
11 changed files with 90 additions and 23 deletions

View File

@@ -107,6 +107,10 @@ bool RDNotification::read(const QString &str)
notify_id=QVariant(args[3].toUInt());
break;
case RDNotification::DropboxType:
notify_id=QVariant(args[3]);
break;
case RDNotification::NullType:
case RDNotification::LastType:
break;
@@ -150,6 +154,10 @@ QString RDNotification::write() const
ret+=QString().sprintf("%u",notify_id.toUInt());
break;
case RDNotification::DropboxType:
ret+=notify_id.toString();
break;
case RDNotification::NullType:
case RDNotification::LastType:
break;
@@ -175,6 +183,10 @@ QString RDNotification::typeString(RDNotification::Type type)
ret="PYPAD";
break;
case RDNotification::DropboxType:
ret="DROPBOX";
break;
case RDNotification::NullType:
case RDNotification::LastType:
break;

View File

@@ -27,7 +27,8 @@
class RDNotification
{
public:
enum Type {NullType=0,CartType=1,LogType=2,PypadType=3,LastType=4};
enum Type {NullType=0,CartType=1,LogType=2,PypadType=3,DropboxType=4,
LastType=5};
enum Action {NoAction=0,AddAction=1,DeleteAction=2,ModifyAction=3,
LastAction=4};
RDNotification(Type type,Action action,const QVariant &id);