aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2014-10-13 01:19:35 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2014-10-13 01:19:35 +0200
commit7ff526724bfb9774aef3be18be6882eeec10d514 (patch)
tree240ea8ccfb438a2baceb75dd2e4f3a5dcac4c298 /OpenKeychain/src/main
parent6de52a431ae5276fa3fd1c37166f3ae58a755e1e (diff)
downloadopen-keychain-7ff526724bfb9774aef3be18be6882eeec10d514.tar.gz
open-keychain-7ff526724bfb9774aef3be18be6882eeec10d514.tar.bz2
open-keychain-7ff526724bfb9774aef3be18be6882eeec10d514.zip
forgot committing ExportResult class
Diffstat (limited to 'OpenKeychain/src/main')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/ExportResult.java60
1 files changed, 60 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/ExportResult.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/ExportResult.java
new file mode 100644
index 000000000..c8edce259
--- /dev/null
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/results/ExportResult.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2014 Vincent Breitmoser <v.breitmoser@mugenguild.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package org.sufficientlysecure.keychain.operations.results;
+
+import android.os.Parcel;
+
+public class ExportResult extends OperationResult {
+
+ final int mOkPublic, mOkSecret;
+
+ public ExportResult(int result, OperationLog log) {
+ this(result, log, 0, 0);
+ }
+
+ public ExportResult(int result, OperationLog log, int okPublic, int okSecret) {
+ super(result, log);
+ mOkPublic = okPublic;
+ mOkSecret = okSecret;
+ }
+
+ /** Construct from a parcel - trivial because we have no extra data. */
+ public ExportResult(Parcel source) {
+ super(source);
+ mOkPublic = source.readInt();
+ mOkSecret = source.readInt();
+ }
+
+ @Override
+ public void writeToParcel(Parcel dest, int flags) {
+ super.writeToParcel(dest, flags);
+ dest.writeInt(mOkPublic);
+ dest.writeInt(mOkSecret);
+ }
+
+ public static Creator<ExportResult> CREATOR = new Creator<ExportResult>() {
+ public ExportResult createFromParcel(final Parcel source) {
+ return new ExportResult(source);
+ }
+
+ public ExportResult[] newArray(final int size) {
+ return new ExportResult[size];
+ }
+ };
+
+}