aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/Agent.h
blob: 8958521e5161c14eae8a2ad700be1474c60622b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include <QString>

#include "Library.h"

class Agent;

typedef std::shared_ptr<Agent> AgentPtr;

class Agent {
   public:
    Agent(LibraryPtr library, const QString& argument)
    {
        m_library = library;
        m_argument = argument;
    }

   public: /* methods */
    LibraryPtr library() { return m_library; }
    QString argument() { return m_argument; }

   protected: /* data */
    /// The library pointing to the jar this Java agent is contained within
    LibraryPtr m_library;

    /// The argument to the Java agent, passed after an = if present
    QString m_argument;
};