Skip to content

Commit

Permalink
Added Todos
Browse files Browse the repository at this point in the history
  • Loading branch information
ngengesenior committed Feb 26, 2024
1 parent 7b68012 commit 2298a99
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public static void setProofPoints(Context context, boolean deviceIds, boolean lo

}

public static void addNotarizationProvider(Context context, NotarizationProvider provider) {
public static void addNotarizationProvider(Context context, Notarization Provider provider) {
MediaWatcher.getInstance(context).addNotarizationProvider(provider);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.witness.proofmode.data_processor;

import java.io.OutputStream;

public interface StorageListener {
public void saveSuccessful(OutputStream savedStream, String hash);

public void saveFailed(Exception exception, OutputStream stream);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.witness.proofmode.data_processor;

import java.io.OutputStream;

public interface StorageProvider {
public void saveStream(String hash, OutputStream stream, StorageListener listener);
}
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ private static synchronized void copyFileToFile(Context context, File fileIn, Fi
}

}

/*
// TODO Involes writing
*/
private static void writeMapToCSV(Context context, File fileOut, HashMap<String, String> hmProof, boolean writeHeaders) {

StringBuffer sb = new StringBuffer();
Expand Down Expand Up @@ -721,6 +723,7 @@ public boolean isOnline(Context context) {
return netInfo != null && netInfo.isConnected();
}

// TODO : Writing involed
private void writeProof(Context context, Uri uriMedia, InputStream is, String mediaHash, boolean showDeviceIds, boolean showLocation, boolean showMobileNetwork, String notes, Date createdAt) throws PGPException, IOException {

boolean usePgpArmor = true;
Expand Down

0 comments on commit 2298a99

Please sign in to comment.