diff options
| -rw-r--r-- | interchange.cxx | 11 | ||||
| -rw-r--r-- | interchange.hxx | 6 | 
2 files changed, 8 insertions, 9 deletions
diff --git a/interchange.cxx b/interchange.cxx index ead53ce..22561cc 100644 --- a/interchange.cxx +++ b/interchange.cxx @@ -22,12 +22,12 @@ namespace QInterchange {  		interchange_cleanup();  	} -	void Interchange::flypage(QString const& path) +	void Interchange::page(QString const& path)  	{  		currentPath = &path; -		interchange_flypage(path.toLatin1().constData(), +		interchange_page(path.toLatin1().constData(),  				[](interchange_response* response) { -			interchange->emitFlypage(*currentPath, +			interchange->emitPage(*currentPath,  					QString{response->data});  			interchange_free_response(response);  		}); @@ -66,10 +66,9 @@ namespace QInterchange {  		defaultCatalog("All-Products");  	} -	void Interchange::emitFlypage(QString const& path, -			QString const& response) +	void Interchange::emitPage(QString const& path, QString const& response)  	{ -		emit gotFlypage(path, response); +		emit gotPage(path, response);  	}  	void Interchange::emitCatalog(QString const& response) diff --git a/interchange.hxx b/interchange.hxx index 10e3ad5..f412377 100644 --- a/interchange.hxx +++ b/interchange.hxx @@ -35,7 +35,7 @@ namespace QInterchange {  			 * a relative path.  			 * \param path The path.  			 */ -			void flypage(QString const& path); +			void page(QString const& path);  			/*!  			 * \brief For fetching products that belong a specific group.  			 * \param prodGroup The name of the product group. @@ -66,14 +66,14 @@ namespace QInterchange {  			void order(QString const& sku);  		signals: -			void gotFlypage(QString const& path, +			void gotPage(QString const& path,  					QString const& response);  			void gotCatalog(QString const& response);  			void gotProduct(QString const& response);  			void gotOrder(QString const& response);  		protected: -			void emitFlypage(QString const& path, +			void emitPage(QString const& path,  					QString const& response);  			void emitCatalog(QString const& response);  			void emitProduct(QString const& response);  |