Revision cad2422f include/Quotas.h

View differences:

include/Quotas.h
37 37
                vm_xpath(_vm_xpath)
38 38
    {};
39 39

  
40
    virtual ~Quotas(){};
40
    ~Quotas(){};
41 41

  
42 42
    /**
43 43
     *  Different quota types
......
57 57
     *
58 58
     *    @return 0 on success, -1 otherwise
59 59
     */
60
    int set(Template *tmpl, string& error);
60
    virtual int set(Template *tmpl, string& error)
61
    {
62
        return set(tmpl, true, error);
63
    };
61 64

  
62 65
    /**
63 66
     *  Delete usage from quota counters.
......
199 202
     */
200 203
    static void quota_del(QuotaType type, int uid, int gid, Template * tmpl);
201 204

  
205
protected:
206
    /**
207
     *  Set the quotas
208
     *    @param tmpl contains the user quota limits
209
     *    @param default_allowed whether or not the limit -1 is allowed
210
     *    @param error describes error when setting the quotas
211
     *
212
     *    @return 0 on success, -1 otherwise
213
     */
214
    int set(Template *tmpl, bool default_allowed, string& error);
215

  
202 216
private:
203 217
    //--------------------------------------------------------------------------
204 218
    // Usage Counters and Quotas 

Also available in: Unified diff