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

#include <storagewizarddialog.h>

Inheritance diagram for GUI::StorageWizardDialog:
Collaboration diagram for GUI::StorageWizardDialog:

List of all members.

Public Member Functions

 StorageWizardDialog (uint32 storageId)
virtual void open ()
virtual void close ()
virtual void handleCommand (CommandSender *sender, uint32 cmd, uint32 data)
virtual void handleTickle ()

Private Member Functions

void containerWidgetsReflow ()
 Hides/shows widgets for Container to work with them correctly.
Common::String getUrl () const
 Return short scummvm.org URL for user to navigate to.
int decodeHashchar (char c)
 Return the value corresponding to the given character.
bool correctChecksum (Common::String s)
 Return whether checksum is correct.
uint32 crc16 (Common::String s)
 The "CRC16_CCITT_FALSE" CRC-16 algorithm.

Private Attributes

uint32 _storageId
StaticTextWidget_headlineWidget
StaticTextWidget_navigateLineWidget
StaticTextWidget_urlLineWidget
StaticTextWidget_returnLine1
StaticTextWidget_returnLine2
EditTextWidget_codeWidget [CODE_FIELDS]
StaticTextWidget_messageWidget
GraphicsWidget_picture
ButtonWidget_openUrlWidget
ButtonWidget_pasteCodeWidget
ButtonWidget_cancelWidget
ButtonWidget_connectWidget
bool _close

Static Private Attributes

static const uint32 CODE_FIELDS = 8

Detailed Description

Definition at line 43 of file storagewizarddialog.h.


Constructor & Destructor Documentation

GUI::StorageWizardDialog::StorageWizardDialog ( uint32  storageId  ) 

Definition at line 45 of file storagewizarddialog.cpp.


Member Function Documentation

void GUI::StorageWizardDialog::close (  )  [virtual]

Reimplemented from GUI::Dialog.

Definition at line 143 of file storagewizarddialog.cpp.

void GUI::StorageWizardDialog::containerWidgetsReflow (  )  [private]

Hides/shows widgets for Container to work with them correctly.

Definition at line 278 of file storagewizarddialog.cpp.

bool GUI::StorageWizardDialog::correctChecksum ( Common::String  s  )  [private]

Return whether checksum is correct.

The last character of the string is treated as the checksum of all the others (decoded with decodeHashchar()).

Checksum = (c[0] ^ c[1] ^ ...) % 64

Definition at line 342 of file storagewizarddialog.cpp.

uint32 GUI::StorageWizardDialog::crc16 ( Common::String  s  )  [private]

The "CRC16_CCITT_FALSE" CRC-16 algorithm.

Definition at line 353 of file storagewizarddialog.cpp.

int GUI::StorageWizardDialog::decodeHashchar ( char  c  )  [private]

Return the value corresponding to the given character.

There is a value corresponding to each of 64 selected printable characters (0-9, A-Z, a-z, ? and !).

When given another character, -1 is returned.

Definition at line 334 of file storagewizarddialog.cpp.

Common::String GUI::StorageWizardDialog::getUrl (  )  const [private]

Return short scummvm.org URL for user to navigate to.

Definition at line 311 of file storagewizarddialog.cpp.

void GUI::StorageWizardDialog::handleCommand ( CommandSender sender,
uint32  cmd,
uint32  data 
) [virtual]

Reimplemented from GUI::Dialog.

Definition at line 154 of file storagewizarddialog.cpp.

void GUI::StorageWizardDialog::handleTickle (  )  [virtual]

Reimplemented from GUI::Dialog.

Definition at line 269 of file storagewizarddialog.cpp.

void GUI::StorageWizardDialog::open (  )  [virtual]

Reimplemented from GUI::Dialog.

Definition at line 106 of file storagewizarddialog.cpp.


Member Data Documentation

Definition at line 62 of file storagewizarddialog.h.

const uint32 GUI::StorageWizardDialog::CODE_FIELDS = 8 [static, private]

Definition at line 44 of file storagewizarddialog.h.


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


Generated on Sat Jan 12 2019 05:04:45 for ResidualVM by doxygen 1.7.1
curved edge   curved edge