Garmin Fleet Management Controller  2.19.0
CCustomFormsDlg.cpp File Reference
#include "stdafx.h"
#include "CCustomFormsDlg.h"
#include "Event.h"
#include "CFileTransferDlg.h"
#include "CFileTransferProgressDlg.h"
#include "FileStream.h"
#include "comdef.h"
#include "util.h"
#include <regex>

Go to the source code of this file.

Macros

#define MULTIPART_CONTENT_HEADER   "Content-Type: multipart/related; boundary=\""
 

Functions

static BOOL cleanupParentFolder (CString &child, int depth)
 
static BOOL extractMultiPart (CFile &srcFile, CString dstPath, CStringArray &extractedFiles)
 
static BOOL readLine (CFile &src, std::string &dst)
 
static BOOL readUntil (CFile &src, const char *boundary, CFile &dst)
 
static BOOL skipTo (CFile &src, const char *boundary)
 
static void write (CFile *file, char *text)
 This function is a helper for writing text to a file. More...
 
static void write (CFile *file, std::string &text)
 This function is a helper for writing text to a file. More...
 

Macro Definition Documentation

#define MULTIPART_CONTENT_HEADER   "Content-Type: multipart/related; boundary=\""

Definition at line 26 of file CCustomFormsDlg.cpp.

Referenced by CCustomFormsDlg::OnFormSubmitReceived().

Function Documentation

static BOOL cleanupParentFolder ( CString &  child,
int  depth 
)
static

Definition at line 734 of file CCustomFormsDlg.cpp.

References FALSE, and TRUE.

Referenced by CCustomFormsDlg::OnBeforeNavigate2().

static BOOL extractMultiPart ( CFile &  srcFile,
CString  dstPath,
CStringArray &  extractedFiles 
)
static

Definition at line 312 of file CCustomFormsDlg.cpp.

References FALSE, readLine(), readUntil(), skipTo(), TRUE, and write().

Referenced by CCustomFormsDlg::OnFormSubmitReceived().

static BOOL readLine ( CFile &  src,
std::string &  dst 
)
static

Definition at line 268 of file CCustomFormsDlg.cpp.

References FALSE, and TRUE.

Referenced by extractMultiPart().

static BOOL readUntil ( CFile &  src,
const char *  boundary,
CFile &  dst 
)
static

Definition at line 234 of file CCustomFormsDlg.cpp.

References FALSE, and TRUE.

Referenced by extractMultiPart().

static BOOL skipTo ( CFile &  src,
const char *  boundary 
)
static

Definition at line 201 of file CCustomFormsDlg.cpp.

References FALSE, and TRUE.

Referenced by extractMultiPart().

static void write ( CFile *  file,
char *  text 
)
static

This function is a helper for writing text to a file.

Definition at line 299 of file CCustomFormsDlg.cpp.

Referenced by extractMultiPart(), CMapViewerDlg::refreshCatalog(), and CMapViewerDlg::sendRouteToDevice().

static void write ( CFile *  file,
std::string &  text 
)
static

This function is a helper for writing text to a file.

Definition at line 307 of file CCustomFormsDlg.cpp.