XKCD::Core(3p)

NAME
XKCD::Core - XKCD viewer's Core package.

SYNOPSIS
#Create the object.
   $xkcd->new($progressbar)

#Commands to move through comics.
   $xkcd->GetPrev
   $xkcd->GetNext
   $xkcd->Random($progressbar)

#Set your own comic Id.
   $xkcd->SetNumber($n)

#Search comic.
   %results = $xkcd->Search($string, $progressbar)

#Save image:
   $xkcd->SaveImage;

#Update methods:
   $xkcd->GetTotal #update total number of comics
   $xkcd->GetDirectLink #update direct link to current image

#Misc:
   $link = $xkcd->link #direct link
   $file = $xkcd->file #image file
   $number = $xkcd->number #current comic Id
   $description = $xkcd->description #current comic description
   $total = $xkcd->total #total number of comics on xkcd
   $file = $xkcd->GetLogo #get xkcd logo
   $file = $xkcd->GetFavicon #get xkcd favicon

NOTE: $progressbar must be a Gtk::ProgressBar object

DESCRIPTION
Using this module you can obtain informations from http://xkcd.com. You can get comic's:
  * images
  * direct link to image
  * descripton
  * title
  * id number

It supports a Gtk2::ProgressBar object while getting data from the website

This module is part of XKCD viewer and is structured to work with it. In spite of it you can develop your own based on my package without any problem. (see SYNOPSYS)

COPYRIGHT
This program is free software and is distributed under the terms of the GPL v.3

Copyleft 2008 fox

AUTHOR
fox <fox91[at]anche[dot]no> If you find bugs please write me! :D