ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <listajaxhandler.h>

Inheritance diagram for Networking::ListAjaxHandler:
Collaboration diagram for Networking::ListAjaxHandler:

List of all members.

Public Member Functions

 ListAjaxHandler ()
virtual ~ListAjaxHandler ()
virtual void handle (Client &client)
 public

Private Types

enum  ItemType {
  IT_DIRECTORY, IT_PARENT_DIRECTORY, IT_TXT, IT_ZIP,
  IT_7Z, IT_UNKNOWN
}

Private Member Functions

Common::JSONObject listDirectory (Common::String path)
 Lists the directory <path>.

Static Private Member Functions

static ItemType detectType (bool isDirectory, const Common::String &name)
 Helper method for detecting items' type.
static void addItem (Common::JSONArray &responseItemsList, ItemType itemType, Common::String path, Common::String name, Common::String size="")
 Helper method for adding items into the files list.

Detailed Description

Definition at line 31 of file listajaxhandler.h.


Member Enumeration Documentation

Enumerator:
IT_DIRECTORY 
IT_PARENT_DIRECTORY 
IT_TXT 
IT_ZIP 
IT_7Z 
IT_UNKNOWN 

Definition at line 32 of file listajaxhandler.h.


Constructor & Destructor Documentation

Networking::ListAjaxHandler::ListAjaxHandler (  ) 

Definition at line 32 of file listajaxhandler.cpp.

Networking::ListAjaxHandler::~ListAjaxHandler (  )  [virtual]

Definition at line 34 of file listajaxhandler.cpp.


Member Function Documentation

void Networking::ListAjaxHandler::addItem ( Common::JSONArray responseItemsList,
ItemType  itemType,
Common::String  path,
Common::String  name,
Common::String  size = "" 
) [static, private]

Helper method for adding items into the files list.

Definition at line 116 of file listajaxhandler.cpp.

ListAjaxHandler::ItemType Networking::ListAjaxHandler::detectType ( bool  isDirectory,
const Common::String name 
) [static, private]

Helper method for detecting items' type.

Definition at line 104 of file listajaxhandler.cpp.

void Networking::ListAjaxHandler::handle ( Client client  )  [virtual]

public

Implements Networking::FilesBaseHandler.

Definition at line 150 of file listajaxhandler.cpp.

Common::JSONObject Networking::ListAjaxHandler::listDirectory ( Common::String  path  )  [private]

Lists the directory <path>.

Returns JSON with either listed directory or error response.

Definition at line 36 of file listajaxhandler.cpp.


The documentation for this class was generated from the following files:


Generated on Sat Sep 21 2019 05:04:22 for ResidualVM by doxygen 1.7.1
curved edge   curved edge