Stellarium  HEAD
Public Types | Signals | Public Member Functions | Friends
HipOnlineReply Class Reference

Contains all the information about a current HIP lookup query. More...

#include <HipOnlineQuery.hpp>

Public Types

enum  HipQueryStatus { HipQueryQuerying , HipQueryErrorOccured , HipQueryFinished }
 Possible status for a Starnames query. More...
 

Signals

void statusChanged ()
 Triggered when the lookup status change.
 

Public Member Functions

QString getResult () const
 Get the raw result HTML string from HIP search.
 
HipQueryStatus getCurrentStatus () const
 Get the current status.
 
QString getCurrentStatusString () const
 Get a I18n string describing the current status. It can be used e.g for reporting in widgets.
 
QString getErrorString () const
 Get the error description string. Return empty string if no error occurred.
 
void deleteNetworkReply ()
 Explicitly delete the internal QNetworkReply. Must not be called from a QNetworkReply signal.
 

Friends

class HipOnlineQuery
 

Detailed Description

Contains all the information about a current HIP lookup query.

Instances of this class are generated by the HipOnlineQuery class.

Member Enumeration Documentation

◆ HipQueryStatus

Possible status for a Starnames query.

Enumerator
HipQueryQuerying 

Starnames is still being queried.

HipQueryErrorOccured 

An error occurred while looking up Starnames. Call getErrorString() for a description of the error.

HipQueryFinished 

The query is over. The reply can be deleted.