foobar2000 SDK  2015-08-03
Public Types | Public Member Functions
commandline_handlerabstract

#include <commandline.h>

+ Inheritance diagram for commandline_handler:

Public Types

enum  result { RESULT_NOT_OURS, RESULT_PROCESSED, RESULT_PROCESSED_EXPECT_FILES }
 
- Public Types inherited from service_base
typedef service_base t_interface
 

Public Member Functions

 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (commandline_handler)
 
virtual void on_file (const char *url)
 
virtual void on_files_done ()
 
virtual result on_token (const char *token)=0
 
virtual bool want_directories ()
 
- Public Member Functions inherited from service_base
template<typename outPtr_t >
bool cast (outPtr_t &outPtr)
 
virtual int service_add_ref ()=0 throw ()
 
virtual bool service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid)
 
template<class T >
bool service_query_t (service_ptr_t< T > &p_out)
 
virtual int service_release ()=0 throw ()
 

Additional Inherited Members

- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Definition at line 1 of file commandline.h.

Member Enumeration Documentation

Enumerator
RESULT_NOT_OURS 
RESULT_PROCESSED 
RESULT_PROCESSED_EXPECT_FILES 

Definition at line 4 of file commandline.h.

5  {
6  RESULT_NOT_OURS,//not our command
7  RESULT_PROCESSED,//command processed
8  RESULT_PROCESSED_EXPECT_FILES,//command processed, we want to takeover file urls after this command
9  };

Member Function Documentation

commandline_handler::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT ( commandline_handler  )
virtual void commandline_handler::on_file ( const char *  url)
inlinevirtual

Reimplemented in commandline_handler_metadb_handle.

Definition at line 11 of file commandline.h.

11 {};//optional
virtual void commandline_handler::on_files_done ( )
inlinevirtual

Reimplemented in commandline_handler_metadb_handle.

Definition at line 12 of file commandline.h.

12 {};//optional
virtual result commandline_handler::on_token ( const char *  token)
pure virtual
virtual bool commandline_handler::want_directories ( )
inlinevirtual

Reimplemented in commandline_handler_metadb_handle.

Definition at line 13 of file commandline.h.

13 {return false;}

The documentation for this class was generated from the following file: