Logo Search packages:      
Sourcecode: mana version File versions  Download package

Public Member Functions | Static Public Member Functions | Public Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes

UpdaterWindow Class Reference
[Core GUI related classes (widgets)]

#include <updatewindow.h>

Inheritance diagram for UpdaterWindow:
Inheritance graph
[legend]
Collaboration diagram for UpdaterWindow:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void action (const gcn::ActionEvent &event)
void center ()
void clearLayout ()
virtual void close ()
void draw (gcn::Graphics *graphics)
void enable ()
int getGuiAlpha ()
LayoutgetLayout ()
int getMaxHeight () const
int getMaxWidth () const
int getMinHeight () const
int getMinWidth () const
WindowgetParentWindow () const
ContainerPlacer getPlacer (int x, int y)
const std::string & getWindowName () const
bool isDefaultVisible () const
bool isResizable () const
bool isSticky () const
void keyPressed (gcn::KeyEvent &keyEvent)
void loadNews ()
void loadWindowState ()
void logic ()
void mouseDragged (gcn::MouseEvent &event)
void mouseExited (gcn::MouseEvent &event)
void mouseMoved (gcn::MouseEvent &event)
void mousePressed (gcn::MouseEvent &event)
void mouseReleased (gcn::MouseEvent &event)
LayoutCellplace (int x, int y, gcn::Widget *, int w=1, int h=1)
void redraw ()
void reflowLayout (int w=0, int h=0)
virtual void resetToDefaultSize ()
void saveWindowState ()
void scheduleDelete ()
void setCloseButton (bool flag)
void setContentSize (int width, int height)
void setDefaultSize (int defaultWidth, int defaultHeight, ImageRect::ImagePosition position, int offsetx=0, int offsetY=0)
void setDefaultSize (int defaultX, int defaultY, int defaultWidth, int defaultHeight)
void setDefaultSize ()
void setDefaultVisible (bool save)
void setLabel (const std::string &)
void setLocationRelativeTo (gcn::Widget *widget)
void setLocationRelativeTo (ImageRect::ImagePosition position, int offsetX=0, int offsetY=0)
void setMaxHeight (int height)
void setMaxWidth (int width)
void setMinHeight (int height)
void setMinWidth (int width)
void setProgress (float p)
void setResizable (bool resize)
void setSaveVisible (bool save)
void setShowTitle (bool flag)
void setSticky (bool sticky)
void setStickyButton (bool flag)
void setVisible (bool visible, bool forceSticky)
virtual void setVisible (bool visible)
void setWindowName (const std::string &name)
 UpdaterWindow (const std::string &updateHost, const std::string &updatesDir, bool applyUpdates)
virtual void widgetHidden (const gcn::Event &event)
void widgetResized (const gcn::Event &event)
bool willSaveVisible () const
 ~UpdaterWindow ()

Static Public Member Functions

static void setWindowContainer (WindowContainer *windowContainer)

Public Attributes

int updateState

Private Types

enum  UpdateDownloadStatus {
  UPDATE_ERROR, UPDATE_IDLE, UPDATE_LIST, UPDATE_COMPLETE,
  UPDATE_NEWS, UPDATE_RESOURCES
}

Private Member Functions

void download ()
void loadUpdates ()

Static Private Member Functions

static size_t memoryWrite (void *ptr, size_t size, size_t nmemb, void *stream)
static int updateProgress (void *ptr, DownloadStatus status, size_t dt, size_t dn)

Private Attributes

BrowserBoxmBrowserBox
ButtonmCancelButton
unsigned long mCurrentChecksum
std::string mCurrentFile
Net::DownloadmDownload
bool mDownloadComplete
int mDownloadedBytes
Mutex mDownloadMutex
float mDownloadProgress
UpdateDownloadStatus mDownloadStatus
gcn::Label * mLabel
bool mLoadUpdates
char * mMemoryBuffer
std::string mNewLabelCaption
ButtonmPlayButton
ProgressBarmProgressBar
ScrollAreamScrollArea
bool mStoreInMemory
std::vector< updateFilemUpdateFiles
std::string mUpdateHost
unsigned int mUpdateIndex
std::string mUpdatesDir
bool mUserCancel

Detailed Description

Update progress window GUI

Definition at line 57 of file updatewindow.h.


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

Generated by  Doxygen 1.6.0   Back to index