Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bbf28fa authored by Ryan Savitski's avatar Ryan Savitski
Browse files

incident report args: add setter stubs & constant aliases

Bug: 130543265
Merged-In: Ieaf5b3b4d67168e2a99ff54e6392c77d8372ed4e
Change-Id: I855002050bf8a9f43b997060b1990f26eec597c7
parent 71458073
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -36,6 +36,12 @@ const uint8_t DEST_LOCAL = 0;
const uint8_t DEST_EXPLICIT = 100;
const uint8_t DEST_AUTOMATIC = 200;

// Aliases for the above.
const uint8_t PRIVACY_POLICY_LOCAL = 0;
const uint8_t PRIVACY_POLICY_EXPLICIT = 100;
const uint8_t PRIVACY_POLICY_AUTOMATIC = 200;
const uint8_t PRIVACY_POLICY_UNSET = 255;


class IncidentReportArgs : public Parcelable {
public:
@@ -48,7 +54,10 @@ public:

    void setAll(bool all);
    void setDest(int dest);
    void setPrivacyPolicy(int);
    void addSection(int section);
    void setReceiverPkg(const string&);
    void setReceiverCls(const string&);
    void addHeader(const IncidentHeaderProto& headerProto);

    inline bool all() const { return mAll; }
+18 −0
Original line number Diff line number Diff line
@@ -194,5 +194,23 @@ IncidentReportArgs::merge(const IncidentReportArgs& that)
    }
}

// stub
void
IncidentReportArgs::setPrivacyPolicy(int)
{
}

// stub
void
IncidentReportArgs::setReceiverPkg(const string&)
{
}

// stub
void
IncidentReportArgs::setReceiverCls(const string&)
{
}

}
}