aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui-blob.c
Commit message (Expand)AuthorAge
* Update copyright informationLukas Fleischer2014-01-08
* readme: use string_list instead of space deliminationsJason A. Donenfeld2013-05-26
* readme: Accept multiple candidates and test them.Jason A. Donenfeld2013-05-25
* Convert cgit_print_error to a variadic functionJohn Keeping2013-04-08
* Always #include corresponding .h in .c filesJohn Keeping2013-04-08
* ui-blob: don't segfault when no path is givenJohn Keeping2013-04-07
* ui-blob.c: Use a context structure in walk_tree()Lukas Fleischer2013-03-04
* White space around control verbs.Jason A. Donenfeld2013-03-04
* Fix several whitespace errorsLukas Fleischer2013-03-04
* Update git to v1.7.6.5John Keeping2013-03-02
* prefer html_raw() to write()Mark Lodato2010-09-04
* Support refspecs in about-filter.Jason A. Donenfeld2010-08-20
* Fix segfault on ppc when browsing treeMartins Polakovs2009-12-12
* ui-blob: return 'application/octet-stream' for binary blobsLars Hjemli2009-07-25
* Adjust to new calling convention for read_tree_recursive()Lars Hjemli2008-07-21
* allow specification of directly linked blobs mimetypesMichael Krelin2008-06-24
* allow blob extract blobs by head/path combinationMichael Krelin2008-06-24
* Don't specify mimetype in ui-blob.cLars Hjemli2008-04-08
* Add ui-shared.hLars Hjemli2008-03-24
* Remove obsolete cacheitem parameter to ui-functionsLars Hjemli2008-03-24
* Add struct cgit_page to cgit_contextLars Hjemli2008-03-24
* Introduce html.hLars Hjemli2008-03-18
* Add support for downloading single blobsLars Hjemli2007-05-09
kground-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*  This file is part of mastodonpp.
 *  Copyright © 2020 tastytea <tastytea@tastytea.de>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation, version 3.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef MASTODONPP_INSTANCE_HPP
#define MASTODONPP_INSTANCE_HPP

#include "curl_wrapper.hpp"

#include <string>

namespace mastodonpp
{

using std::string;

/*!
 *  @brief  Holds the access data of an instance.
 *
 *  @since  0.1.0
 *
 *  @headerfile instance.hpp mastodonpp/instance.hpp
 */
class Instance : public CURLWrapper
{
public:
    /*!
     *  @brief  Construct a new Instance object.
     *
     *  @param  instance     The hostname of the instance.
     *  @param  access_token Your access token.
     *
     *  @since  0.1.0
     */
    explicit Instance(string instance, string access_token);

private:
    const string _instance;
    string _access_token;
};

} // namespace mastodonpp

#endif  // MASTODONPP_INSTANCE_HPP