Skip to content

Commit

Permalink
Fix compilation errors from refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperair committed Mar 19, 2011
1 parent 7cb040e commit 3f81759
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/yatta/curl/chunk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <sigc++/signal.h>

#include "chunk.hh"
#include "download.hh"
#include "../download.hh"
#include "manager.hh"

namespace Yatta
Expand Down
7 changes: 3 additions & 4 deletions src/yatta/curl/chunk.hh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@
#include <sigc++/slot.h>
#include <sigc++/connection.h>

#include "../download.hh"

namespace Yatta
{
namespace Curl
{
// forward declaration
class Download;

class Chunk
{
public:
Expand All @@ -46,7 +45,7 @@ namespace Yatta
typedef sigc::slot<void, CURLcode> slot_finished_t;

// constructors and destructors
explicit Chunk (Download &parent, size_t offset, size_t total=0);
Chunk (Download &parent, size_t offset, size_t total=0);
virtual ~Chunk ();

// member functions
Expand Down
1 change: 1 addition & 0 deletions src/yatta/download.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "download.hh"
#include "ioqueue.hh"
#include "curl/manager.hh"
#include "curl/chunk.hh"

namespace Yatta
{
Expand Down
5 changes: 2 additions & 3 deletions src/yatta/download.hh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@
#include <glibmm/ustring.h>
#include <glibmm/refptr.h>

#include "curl/chunk.hh"
#include "curl/manager.hh"

namespace Yatta
{
namespace Curl { class Chunk; } // FIXME: abstract Chunk away so we don't
typedef Curl::Chunk Chunk; // have to resort to this hack
class Download : public sigc::trackable
{
public:
Expand Down
8 changes: 1 addition & 7 deletions src/yatta/ioqueue.hh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@
#include <sigc++/slot.h>
#include <glibmm/refptr.h>

// some forward decls
namespace Gio
{
class File;
class AsyncResult;
class Error;
}
#include <giomm.h>

namespace Yatta
{
Expand Down

0 comments on commit 3f81759

Please sign in to comment.