Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpieta authored Jun 16, 2023
1 parent fff6623 commit 1854566
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 15 deletions.
3 changes: 0 additions & 3 deletions GUI/App.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ class App : public wxApp
public:
virtual bool OnInit() override;

//MyFrame& GetMainFrame() { return *mainFrame; }

private:
//MyFrame *mainFrame = nullptr;
};

#endif // MYAPP_H
4 changes: 1 addition & 3 deletions GUI/MyFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ MyFrame::MyFrame(const wxString& title, const std::string& token)
sizer->Add(topHorizontalBox);

grid = new wxGrid(this, wxID_ANY);
grid->CreateGrid(0, 5); // Create a grid with 5 columns
grid->CreateGrid(0, 5);
grid->SetColLabelValue(0, "Item ID");
grid->SetColLabelValue(1, "Name");
grid->SetColLabelValue(2, "Quantity");
Expand Down Expand Up @@ -92,7 +92,6 @@ MyFrame::MyFrame(const wxString& title, const std::string& token)
}

void MyFrame::OnAddButtonClick(wxCommandEvent& event) {
//grid->ForceRefresh();
std::thread t([this]() {
addButton->Disable();

Expand Down Expand Up @@ -127,7 +126,6 @@ void MyFrame::OnAddButtonClick(wxCommandEvent& event) {
}

void MyFrame::OnFetchData(wxCommandEvent& event) {
//std::cout<<"fetching"<<std::endl;
fetchButton->Disable();
addButton->Disable();
textBox->Clear();
Expand Down
5 changes: 0 additions & 5 deletions core/AuctionHouse.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
//
// Created by Lenovo on 14/06/2023.
//

#include "AuctionHouse.h"

AuctionHouse::AuctionHouse(const std::string& token) : api(token){}
Expand Down Expand Up @@ -45,7 +41,6 @@ void AuctionHouse::fetchData() {
}

this->isFetched = true;
//std::cout<<std::endl<<"fetching done"<<std::endl;

}

Expand Down
2 changes: 1 addition & 1 deletion core/AuctionHouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <unordered_map>
#include <string>
//#include <thread>


#include "WoWAPI.h"
#include "AuctionEntry.h"
Expand Down
3 changes: 0 additions & 3 deletions core/WoWAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ size_t WriteCallback(void* contents, size_t size, size_t nmemb, std::string* res
}

std::string WoWAPI::makeApiRequest(const std::string &url){
//std::cout<<url<<std::endl;
CURL* curl = curl_easy_init();
if (curl) {
//std::cout<<sentRequests<<"\n";
sentRequests++;
std::string response;

Expand Down Expand Up @@ -150,5 +148,4 @@ Item WoWAPI::getItemByID(int id) {

return {id,name,desc,imageURL};
}
//throw std::exception("Couldn't find given item id");
}

0 comments on commit 1854566

Please sign in to comment.