mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
2019-01-10 Fred Gleason <fredg@paravelsystems.com>
* Refactored dropbox instance management to use multicast notifications.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user